public class NodeEventQueue extends Object
| Constructor and Description |
|---|
NodeEventQueue()
Class constructor
|
| Modifier and Type | Method and Description |
|---|---|
void |
addEvent(NodeEvent event)
Add an event to the queue
|
int |
numberOfEvents()
Return the number of events in the queue
|
NodeEvent |
removeEvent()
Remove an event from the head of the queue
|
NodeEvent |
removeSessionNoWait()
Remove an event from the queue, without waiting if there are no events in the queue
|
void |
waitUntilEmpty()
Wait for the event queue to be emptied
|
void |
waitWhileEmpty()
Wait for an event to be added to the queue
|
public final int numberOfEvents()
public final void addEvent(NodeEvent event)
event - NodeEventpublic final NodeEvent removeEvent() throws InterruptedException
InterruptedExceptionpublic final NodeEvent removeSessionNoWait()
public final void waitWhileEmpty()
throws InterruptedException
InterruptedExceptionpublic final void waitUntilEmpty()
throws InterruptedException
InterruptedExceptionCopyright © 2005–2018 Alfresco Software. All rights reserved.