Class SimpleFIFOQueue
- java.lang.Object
- 
- org.eclipse.ecf.core.sharedobject.util.SimpleFIFOQueue
 
- 
- All Implemented Interfaces:
- ISimpleFIFOQueue
 
 public class SimpleFIFOQueue extends Object implements ISimpleFIFOQueue 
- 
- 
Constructor SummaryConstructors Constructor Description SimpleFIFOQueue()
 - 
Method SummaryAll Methods Instance Methods Concrete Methods Modifier and Type Method Description voidclose()Close this queue.Objectdequeue()Dequeue an object from off thebooleanenqueue(Object obj)Enqueue given object.Object[]flush()booleanisEmpty()booleanisStopped()ObjectpeekQueue()ObjectpeekQueue(long waitMS)ObjectremoveHead()intsize()voidstop()StringtoString()
 
- 
- 
- 
Method Detail- 
enqueuepublic boolean enqueue(Object obj) Description copied from interface:ISimpleFIFOQueueEnqueue given object. Blocks until enqueue is completed.- Specified by:
- enqueuein interface- ISimpleFIFOQueue
- Parameters:
- obj- the Object to enqueue
- Returns:
- true if enqueued, false if not successfully enqueue
 
 - 
dequeuepublic Object dequeue() Description copied from interface:ISimpleFIFOQueueDequeue an object from off the- Specified by:
- dequeuein interface- ISimpleFIFOQueue
- Returns:
- Object dequeued
 
 - 
peekQueuepublic Object peekQueue() - Specified by:
- peekQueuein interface- ISimpleFIFOQueue
- Returns:
- Object at head of queue without removing it from queue
 
 - 
peekQueuepublic Object peekQueue(long waitMS) 
 - 
removeHeadpublic Object removeHead() - Specified by:
- removeHeadin interface- ISimpleFIFOQueue
- Returns:
- Object that is head of queue. Removes head from queue
 
 - 
isEmptypublic boolean isEmpty() 
 - 
stoppublic void stop() 
 - 
isStoppedpublic boolean isStopped() 
 - 
sizepublic int size() 
 - 
flushpublic Object[] flush() 
 - 
closepublic void close() Description copied from interface:ISimpleFIFOQueueClose this queue. Once closed, the underlying queue cannot be used again- Specified by:
- closein interface- ISimpleFIFOQueue
 
 
- 
 
-