public class BlockingArray<T> extends Object
Constructor and Description |
---|
BlockingArray(int capacity) |
Modifier and Type | Method and Description |
---|---|
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.
|
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)
Copyright © 2016 Egothor. All Rights Reserved.