net.sf.zig_project.gpl.common.queue
Interface OrderedQueue

All Superinterfaces:
OrderedBlockingQueue, Queue
All Known Subinterfaces:
GenericQueue
All Known Implementing Classes:
LinearOrderedQueue, PriorityQueue

public interface OrderedQueue
extends OrderedBlockingQueue

Provides a Queue that orders it's elements for removal. Implementations may declare varying mechanisms for adding elements in order to determine an appropriate order for them.

Version:
October 12, 2004
Author:
Frank Ziglar

Method Summary
 Object removeNext()
          Removes the next Object from the queue.
 
Methods inherited from interface net.sf.zig_project.gpl.common.queue.OrderedBlockingQueue
peekNext
 
Methods inherited from interface net.sf.zig_project.gpl.common.queue.Queue
clear, contains, elements, isEmpty, remove
 

Method Detail

removeNext

public Object removeNext()
Removes the next Object from the queue. This method always returns immediately. If the Queue is empty at the time this method is called, it will return null instead of waiting.

Specified by:
removeNext in interface OrderedBlockingQueue
Returns:
the next Object in the queue, or null if the queue was empty.