Class SimpleFIFOQueue
java.lang.Object
org.eclipse.ecf.core.sharedobject.util.SimpleFIFOQueue
- All Implemented Interfaces:
ISimpleFIFOQueue
-
Constructor Details
-
SimpleFIFOQueue
public SimpleFIFOQueue()
-
-
Method Details
-
enqueue
Description copied from interface:ISimpleFIFOQueueEnqueue given object. Blocks until enqueue is completed.- Specified by:
enqueuein interfaceISimpleFIFOQueue- Parameters:
obj- the Object to enqueue- Returns:
- true if enqueued, false if not successfully enqueue
-
dequeue
Description copied from interface:ISimpleFIFOQueueDequeue an object from off the- Specified by:
dequeuein interfaceISimpleFIFOQueue- Returns:
- Object dequeued
-
peekQueue
- Specified by:
peekQueuein interfaceISimpleFIFOQueue- Returns:
- Object at head of queue without removing it from queue
-
peekQueue
-
removeHead
- Specified by:
removeHeadin interfaceISimpleFIFOQueue- Returns:
- Object that is head of queue. Removes head from queue
-
isEmpty
public boolean isEmpty() -
stop
public void stop() -
isStopped
public boolean isStopped() -
size
public int size() -
flush
-
close
public void close()Description copied from interface:ISimpleFIFOQueueClose this queue. Once closed, the underlying queue cannot be used again- Specified by:
closein interfaceISimpleFIFOQueue
-
toString
-