ciagent
Class CIAgentEventQueue

java.lang.Object
  |
  +--ciagent.CIAgentEventQueue

public class CIAgentEventQueue
extends java.lang.Object
implements java.io.Serializable

The CIAgentEventListener class defines queue that contains agent events.

See Also:
Serialized Form

Constructor Summary
CIAgentEventQueue()
          Creates an event queue.
 
Method Summary
 void addEvent(CIAgentEvent event)
          Adds an event to the end of the queue.
 CIAgentEvent getNextEvent()
          Retrieves the first element from the queue (if any) after removing it from the queue.
 CIAgentEvent peekEvent()
          Retrieves the first element from the queue (if any) without removing it.
 
Methods inherited from class java.lang.Object
, clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Constructor Detail

CIAgentEventQueue

public CIAgentEventQueue()
Creates an event queue.
Method Detail

addEvent

public void addEvent(CIAgentEvent event)
Adds an event to the end of the queue.
Parameters:
event - the CIAgentEvent to be added to the queue

getNextEvent

public CIAgentEvent getNextEvent()
Retrieves the first element from the queue (if any) after removing it from the queue.
Returns:
the first event on the queue

peekEvent

public CIAgentEvent peekEvent()
Retrieves the first element from the queue (if any) without removing it.
Returns:
the first event on the queue