Class NodeEventQueue

java.lang.Object
org.alfresco.filesys.repo.NodeEventQueue

public class NodeEventQueue extends Object
Node Event Queue Class
Author:
gkspencer
  • 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

      public final void addEvent(NodeEvent event)
      Add an event to the queue
      Parameters:
      event - NodeEvent
    • removeEvent

      public final NodeEvent removeEvent() throws InterruptedException
      Remove an event from the head of the queue
      Returns:
      NodeEvent
      Throws:
      InterruptedException
    • removeSessionNoWait

      public final NodeEvent removeSessionNoWait()
      Remove an event from the queue, without waiting if there are no events in the queue
      Returns:
      NodeEvent
    • waitWhileEmpty

      public final void waitWhileEmpty() throws InterruptedException
      Wait for an event to be added to the queue
      Throws:
      InterruptedException
    • waitUntilEmpty

      public final void waitUntilEmpty() throws InterruptedException
      Wait for the event queue to be emptied
      Throws:
      InterruptedException