org.eclipse.ecf.core.util
Class SimpleQueueImpl
java.lang.Object
org.eclipse.ecf.core.util.SimpleQueueImpl
- All Implemented Interfaces:
- ISimpleQueue
public class SimpleQueueImpl
- extends java.lang.Object
- implements ISimpleQueue
Methods inherited from class java.lang.Object |
clone, equals, finalize, getClass, hashCode, notify, notifyAll, wait, wait, wait |
SimpleQueueImpl
public SimpleQueueImpl()
enqueue
public boolean enqueue(java.lang.Object obj)
- Specified by:
enqueue
in interface ISimpleQueue
dequeue
public java.lang.Object dequeue()
- Specified by:
dequeue
in interface ISimpleQueue
peekQueue
public java.lang.Object peekQueue()
- Specified by:
peekQueue
in interface ISimpleQueue
peekQueue
public java.lang.Object peekQueue(long waitMS)
removeHead
public java.lang.Object removeHead()
- Specified by:
removeHead
in interface ISimpleQueue
isEmpty
public boolean isEmpty()
stop
public void stop()
isStopped
public boolean isStopped()
size
public int size()
flush
public java.lang.Object[] flush()
close
public void close()
- Specified by:
close
in interface ISimpleQueue
toString
public java.lang.String toString()
- Overrides:
toString
in class java.lang.Object