net.sf.webmancer.base
Class EventQueue

java.lang.Object
  extended by net.sf.webmancer.base.EventQueue
All Implemented Interfaces:
IEventQueue

public class EventQueue
extends java.lang.Object
implements IEventQueue

Author:
Michal Burda

Constructor Summary
EventQueue()
          Constructs the EventQueue.
 
Method Summary
 boolean hasEvents()
          Determine whether there are some events in the queue.
 Event nextEvent()
          Return the next event in the queue or null if the queue is empty.
 void putEvent(Event event)
          Put the event into the event queue.
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Constructor Detail

EventQueue

public EventQueue()
Constructs the EventQueue.

Method Detail

hasEvents

public boolean hasEvents()
Description copied from interface: IEventQueue
Determine whether there are some events in the queue.

Specified by:
hasEvents in interface IEventQueue
Returns:
true if there are some events in the queue.
See Also:
IEventQueue.hasEvents()

nextEvent

public Event nextEvent()
Description copied from interface: IEventQueue
Return the next event in the queue or null if the queue is empty.

Specified by:
nextEvent in interface IEventQueue
Returns:
the next event stored in the queue or null if the queue is empty.
See Also:
IEventQueue.nextEvent()

putEvent

public void putEvent(Event event)
Description copied from interface: IEventQueue
Put the event into the event queue.

Specified by:
putEvent in interface IEventQueue
Parameters:
event - The event to put into this queue (must not be null)
See Also:
IEventQueue.putEvent(net.sf.webmancer.base.Event)


Copyright © 2006-2007. All Rights Reserved.