Package org.alfresco.filesys.repo
Class NodeEventQueue
java.lang.Object
org.alfresco.filesys.repo.NodeEventQueue
Node Event Queue Class
- Author:
- gkspencer
-
Constructor Summary
Constructors -
Method Summary
Modifier and TypeMethodDescriptionfinal voidAdd an event to the queuefinal intReturn the number of events in the queuefinal NodeEventRemove an event from the head of the queuefinal NodeEventRemove an event from the queue, without waiting if there are no events in the queuefinal voidWait for the event queue to be emptiedfinal voidWait for an event to be added to the queue
-
Constructor Details
-
NodeEventQueue
public NodeEventQueue()Class constructor
-
-
Method Details
-
numberOfEvents
public final int numberOfEvents()Return the number of events in the queue- Returns:
- int
-
addEvent
Add an event to the queue- Parameters:
event- NodeEvent
-
removeEvent
Remove an event from the head of the queue- Returns:
- NodeEvent
- Throws:
InterruptedException
-
removeSessionNoWait
Remove an event from the queue, without waiting if there are no events in the queue- Returns:
- NodeEvent
-
waitWhileEmpty
Wait for an event to be added to the queue- Throws:
InterruptedException
-
waitUntilEmpty
Wait for the event queue to be emptied- Throws:
InterruptedException
-