Class ObservationDispatcher
- java.lang.Object
-
- org.apache.jackrabbit.core.observation.ObservationDispatcher
-
-
Constructor Summary
Constructors Constructor Description ObservationDispatcher()
Creates a newObservationDispatcher
instance and starts the notification thread daemon.
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description void
delayIfEventQueueOverloaded()
Checks if the observation event queue contains more than the configuredmaximum number of events
, and delays the current thread in such cases.void
dispose()
Disposes thisObservationManager
.void
run()
Implements the run method of the background notification thread.
-
-
-
Method Detail
-
dispose
public void dispose()
Disposes thisObservationManager
. This will effectively stop the background notification thread.
-
run
public void run()
Implements the run method of the background notification thread.
-
delayIfEventQueueOverloaded
public void delayIfEventQueueOverloaded()
Checks if the observation event queue contains more than the configuredmaximum 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.
-
-