|
|
|||||||||||
| 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
|
+--intradoc.lang.Queue
|
+--intradoc.lang.BlockingQueue
The BlockingQueue class represents a Queue where remove will block the calling thread if the queue is empty.
Queue,
Serialized Form| Field Summary |
| Fields inherited from class java.util.Vector |
capacityIncrement, elementCount, elementData |
| Fields inherited from class java.util.AbstractList |
modCount |
| Constructor Summary | |
BlockingQueue()
|
|
| Method Summary | |
java.lang.Object |
insert(java.lang.Object obj)
Adds an object to the back of this queue notifying a blocked threads (if there is one). |
java.util.Vector |
namesOfBlockedThreads()
Get the list of threads waiting on this queue. |
java.lang.Object |
remove()
Removes an object from the front of this queue and returns that object blocking if the queue is empty. |
java.lang.Object |
removeWithTimeout(long milliseconds)
Removes an object from the front of this queue and returns that object blocking, with timeout, if the queue is empty. |
| Methods inherited from class intradoc.lang.Queue |
empty, peek, search |
| 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 BlockingQueue()
| Method Detail |
public java.lang.Object insert(java.lang.Object obj)
insert in class Queueobj - the object to add to this queue.
item argument.public java.lang.Object remove()
remove in class Queuepublic java.lang.Object removeWithTimeout(long milliseconds)
milliseconds - the timeout interval.
public java.util.Vector namesOfBlockedThreads()
Vector of String containing thread
named waiting.
|
||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||
(c) 1996-2005 All rights reserved. Stellent, Inc. |