public class ListenerTracker extends Object
EventListenerMBean
interface.Modifier and Type | Field and Description |
---|---|
protected Exception |
initStackTrace |
Constructor and Description |
---|
ListenerTracker(javax.jcr.observation.EventListener listener,
int eventTypes,
String absPath,
boolean isDeep,
String[] uuid,
String[] nodeTypeName,
boolean noLocal) |
Modifier and Type | Method and Description |
---|---|
protected void |
afterEventDelivery()
Called just after the
EventListener.onEvent(EventIterator)
method has been called (even if the call threw an exception). |
protected void |
beforeEventDelivery()
Called just before the
EventListener.onEvent(EventIterator)
method is called. |
EventListenerMBean |
getListenerMBean() |
javax.jcr.observation.EventListener |
getTrackedListener() |
void |
recordOneSecond()
Records the number of measured values over the past second and resets
the counter.
|
void |
recordQueueLength(long length)
Applications should call this to report the current queue length.
|
String |
toString() |
protected void |
warn(String message)
Called to log a deprecation warning about the detected behavior of
the decorated listener.
|
protected final Exception initStackTrace
protected void warn(String message)
message
- warning messageprotected void beforeEventDelivery()
EventListener.onEvent(EventIterator)
method is called. The default implementation of this method does
nothing, but subclasses can override it to add custom processing.protected void afterEventDelivery()
EventListener.onEvent(EventIterator)
method has been called (even if the call threw an exception). The
default implementation of this method does nothing, but subclasses
can override it to add custom processing.public void recordQueueLength(long length)
length
- public void recordOneSecond()
public javax.jcr.observation.EventListener getTrackedListener()
public EventListenerMBean getListenerMBean()
Copyright © 2004-2020 The Apache Software Foundation. All Rights Reserved.