|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
java.lang.Object org.apache.jackrabbit.core.observation.ObservationDispatcher
public final class ObservationDispatcher
Dispatcher for dispatching events to listeners within a single workspace.
Constructor Summary | |
---|---|
ObservationDispatcher()
Creates a new ObservationDispatcher instance
and starts the notification thread daemon. |
Method Summary | |
---|---|
void |
delayIfEventQueueOverloaded()
Checks if the observation event queue contains more than the configured maximum number of events ,
and delays the current thread in such cases. |
void |
dispose()
Disposes this ObservationManager . |
void |
run()
Implements the run method of the background notification thread. |
Methods inherited from class java.lang.Object |
---|
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
Constructor Detail |
---|
public ObservationDispatcher()
ObservationDispatcher
instance
and starts the notification thread daemon.
Method Detail |
---|
public void dispose()
ObservationManager
. This will
effectively stop the background notification thread.
public void run()
run
in interface Runnable
public void delayIfEventQueueOverloaded()
maximum number of events
,
and delays the current thread in such cases. No delay is added
if the current thread is the observation thread, for example if
an observation listener writes to the repository.
This method should only be called outside the scope of internal repository access locks.
|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |