|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
java.lang.Object java.util.AbstractCollection java.util.AbstractList java.util.Vector netcom.util.SQueue
implements a FIFO queue of Objects
Field Summary |
Fields inherited from class java.util.Vector |
capacityIncrement, elementCount, elementData |
Fields inherited from class java.util.AbstractList |
modCount |
Constructor Summary | |
SQueue()
Creates new Queue |
|
SQueue(int preload)
|
Method Summary | |
java.lang.Object |
dequeue()
Remove object from the head of the queue |
java.lang.Object |
dequeueOrWait(long timeout)
Remove object from the head of the queue. |
void |
enqueue(java.lang.Object obj)
Add object to the tail of the queue |
boolean |
isQueueEmpty()
test if queue has elements |
java.lang.Object |
peek()
Get object reference from the head of the queue without dequeueing it |
void |
scan(netcom.util.SQueue.Scanner scanner)
lock and scan queue. |
Methods inherited from class java.util.Vector |
add, add, addAll, addAll, addElement, capacity, clear, clone, contains, containsAll, copyInto, elementAt, elements, ensureCapacity, equals, firstElement, get, hashCode, indexOf, indexOf, insertElementAt, isEmpty, lastElement, lastIndexOf, lastIndexOf, remove, remove, removeAll, removeAllElements, removeElement, removeElementAt, removeRange, retainAll, set, setElementAt, setSize, size, subList, toArray, toArray, toString, trimToSize |
Methods inherited from class java.util.AbstractList |
iterator, listIterator, listIterator |
Methods inherited from class java.lang.Object |
finalize, getClass, notify, notifyAll, wait, wait, wait |
Methods inherited from interface java.util.List |
iterator, listIterator, listIterator |
Constructor Detail |
public SQueue()
public SQueue(int preload)
Method Detail |
public void enqueue(java.lang.Object obj)
obj
- object being addedpublic java.lang.Object dequeue()
public java.lang.Object peek()
public java.lang.Object dequeueOrWait(long timeout)
timeout
- the timeout in milliseconds
public boolean isQueueEmpty()
public void scan(netcom.util.SQueue.Scanner scanner)
|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |