Constructor and Description |
---|
ObservationDispatcher()
Creates a new
ObservationDispatcher instance
and starts the notification thread daemon. |
Modifier and Type | Method and Description |
---|---|
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.
|
public ObservationDispatcher()
ObservationDispatcher
instance
and starts the notification thread daemon.public void dispose()
ObservationManager
. This will
effectively stop the background notification thread.public void run()
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.
Copyright © 2004–2024 The Apache Software Foundation. All rights reserved.