|
||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||
java.lang.Objectoemware.core.FixedBlockingQueue
public final class FixedBlockingQueue
The blocking fixed size queue (i.e., has a max size).
| Constructor Summary | |
|---|---|
FixedBlockingQueue(int pCapacity)
Construct a new queue. |
|
| Method Summary | |
|---|---|
void |
put(java.lang.Object pObj)
Add an element. |
int |
remainingCapacity()
Returns the remaining capacity. |
void |
shutdown()
Stop the queue. |
void |
startup()
|
java.lang.Object |
take()
Take the object. |
| Methods inherited from class java.lang.Object |
|---|
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
| Constructor Detail |
|---|
public FixedBlockingQueue(int pCapacity)
pCapacity - The max capacity.| Method Detail |
|---|
public final java.lang.Object take()
throws java.lang.InterruptedException
java.lang.InterruptedException
public final void put(java.lang.Object pObj)
throws java.lang.InterruptedException
java.lang.InterruptedExceptionpublic final int remainingCapacity()
public final void shutdown()
public final void startup()
|
||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||