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
InterruptedException
public final NodeEvent removeSessionNoWait()
public final void waitWhileEmpty() throws InterruptedException
InterruptedException
public final void waitUntilEmpty() throws InterruptedException
InterruptedException
Copyright © 2005–2017 Alfresco Software. All rights reserved.