ariba.util.core
Class EventQueue

java.lang.Object
  extended by ariba.util.core.EventQueue
Direct Known Subclasses:
EventLoop

public class EventQueue
extends java.lang.Object

A simple queue of events that can be added to and waited on by multiple threads


Constructor Summary
EventQueue()
           
 
Method Summary
 void addEvent(EventProcessor anEvent)
          Places anEvent on the event queue.
 EventProcessor getNextEvent()
          Removes and returns the next EventProcessor from the EventLoop's event queue.
 EventProcessor getNextEventIfAny()
           
 int queueLength()
           
 
Methods inherited from class java.lang.Object
equals, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Constructor Detail

EventQueue

public EventQueue()
Method Detail

queueLength

public int queueLength()

addEvent

public void addEvent(EventProcessor anEvent)
Places anEvent on the event queue.


getNextEvent

public EventProcessor getNextEvent()
Removes and returns the next EventProcessor from the EventLoop's event queue.


getNextEventIfAny

public EventProcessor getNextEventIfAny()


AribaWeb User Interface Development Framework
Copyright © 2000-2014 Ariba, Inc. All Rights Reserved.