org.eclipse.ecf.core.util
Class SimpleQueueImpl

java.lang.Object
  extended by org.eclipse.ecf.core.util.SimpleQueueImpl
All Implemented Interfaces:
ISimpleQueue

public class SimpleQueueImpl
extends java.lang.Object
implements ISimpleQueue


Constructor Summary
SimpleQueueImpl()
           
 
Method Summary
 void close()
           
 java.lang.Object dequeue()
           
 boolean enqueue(java.lang.Object obj)
           
 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()
           
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, wait, wait, wait
 

Constructor Detail

SimpleQueueImpl

public SimpleQueueImpl()
Method Detail

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