|
||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||
java.lang.Objectorg.egothor.util.BlockingArray<T>
public class BlockingArray<T>
This class is used to replace the Sun's implementation in java.util.concurrent.
| Constructor Summary | |
|---|---|
BlockingArray(int capacity)
|
|
| Method Summary | |
|---|---|
void |
dumpState()
|
boolean |
issueLast(T e)
Non-blocking pushLast which returns false if the array is actually full and the new element was not added. |
T |
popFirst()
|
T |
popLast()
|
void |
pushLast(T e)
|
int |
size()
|
boolean |
waitForEmpty(long delay)
Waits until the array is empty or time passed. |
| Methods inherited from class java.lang.Object |
|---|
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
| Constructor Detail |
|---|
public BlockingArray(int capacity)
| Method Detail |
|---|
public void dumpState()
public T popFirst()
public T popLast()
public void pushLast(T e)
public boolean issueLast(T e)
public int size()
public boolean waitForEmpty(long delay)
|
||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||