public class NodeEventQueue
extends java.lang.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)
evetn - NodeEventpublic final NodeEvent removeEvent() throws java.lang.InterruptedException
java.lang.InterruptedExceptionpublic final NodeEvent removeSessionNoWait()
public final void waitWhileEmpty()
throws java.lang.InterruptedException
java.lang.InterruptedExceptionpublic final void waitUntilEmpty()
throws java.lang.InterruptedException
java.lang.InterruptedExceptionCopyright © 2005 - 2010 Alfresco Software, Inc. All Rights Reserved.