public class ListenerTracker
extends java.lang.Object
EventListenerMBean interface.| Constructor and Description |
|---|
ListenerTracker(EventListener listener,
int eventTypes,
java.lang.String absPath,
boolean isDeep,
java.lang.String[] uuid,
java.lang.String[] nodeTypeName,
boolean noLocal) |
| Modifier and Type | Method and Description |
|---|---|
EventListenerMBean |
getListenerMBean() |
EventListener |
getTrackedListener() |
void |
recordOneSecond()
Records the number of measured values over the past second and resets
the counter.
|
void |
recordProducerTime(long time,
java.util.concurrent.TimeUnit unit)
Record additional producer time spent outside of the listeners, e.g.
|
void |
recordQueueLength(long length)
Applications should call this to report the current queue length.
|
void |
recordQueueLength(long length,
long headTimestamp)
Applications should call this to report the current queue length when an
item is removed from the queue.
|
java.lang.String |
toString() |
public ListenerTracker(EventListener listener,
int eventTypes,
java.lang.String absPath,
boolean isDeep,
java.lang.String[] uuid,
java.lang.String[] nodeTypeName,
boolean noLocal)
public void recordQueueLength(long length)
length - public void recordQueueLength(long length,
long headTimestamp)
length - the length of the queue after the item was removed.headTimestamp - the time in milliseconds when the head item was
created and put into the queue.public void recordOneSecond()
public void recordProducerTime(long time,
java.util.concurrent.TimeUnit unit)
onEvent() is called.time - the amount of time.unit - the time unit.public EventListener getTrackedListener()
public EventListenerMBean getListenerMBean()
public java.lang.String toString()
toString in class java.lang.Object"Copyright © 2010 - 2018 Adobe Systems Incorporated. All Rights Reserved"