|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
java.lang.Object com.flat502.rox.utils.BlockingQueue
public class BlockingQueue
This class provides a simple implementation of the core functionality
of Java 1.5's BlockingQueue
interface.
The intention is to be able to use this project on Java 1.4.
Constructor Summary | |
---|---|
BlockingQueue()
|
Method Summary | |
---|---|
void |
add(java.lang.Object o)
Adds the specified element to this queue |
java.lang.Object |
take()
Retrieves and removes the head of this queue, waiting if no elements are present on this queue. |
Methods inherited from class java.lang.Object |
---|
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
Constructor Detail |
---|
public BlockingQueue()
Method Detail |
---|
public void add(java.lang.Object o)
o
- the element
java.lang.NullPointerException
- if the specified element is null
public java.lang.Object take() throws java.lang.InterruptedException
java.lang.InterruptedException
- if interrupted while waiting.
|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |