public class SimpleFIFOQueue extends java.lang.Object implements ISimpleFIFOQueue
Constructor and Description |
---|
SimpleFIFOQueue() |
Modifier and Type | Method and Description |
---|---|
void |
close()
Close this queue.
|
java.lang.Object |
dequeue()
Dequeue an object from off the
|
boolean |
enqueue(java.lang.Object obj)
Enqueue given object.
|
java.lang.Object[] |
flush() |
boolean |
isEmpty() |
boolean |
isStopped() |
java.lang.Object |
peekQueue() |
java.lang.Object |
peekQueue(long waitMS) |
java.lang.Object |
removeHead() |
int |
size() |
void |
stop() |
java.lang.String |
toString() |
public boolean enqueue(java.lang.Object obj)
ISimpleFIFOQueue
enqueue
in interface ISimpleFIFOQueue
obj
- the Object to enqueuepublic java.lang.Object dequeue()
ISimpleFIFOQueue
dequeue
in interface ISimpleFIFOQueue
public java.lang.Object peekQueue()
peekQueue
in interface ISimpleFIFOQueue
public java.lang.Object peekQueue(long waitMS)
public java.lang.Object removeHead()
removeHead
in interface ISimpleFIFOQueue
public boolean isEmpty()
public void stop()
public boolean isStopped()
public int size()
public java.lang.Object[] flush()
public void close()
ISimpleFIFOQueue
close
in interface ISimpleFIFOQueue
public java.lang.String toString()
toString
in class java.lang.Object