|
|||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||
SUMMARY: INNER | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
java.lang.Object | +--com.ibm.ulc.util.UnboundedBuffer
An unbounded buffer. Taking an item from an empty buffer blocks the caller until it is non-empty. Putting an item never blocks the caller.
Field Summary | |
protected java.util.Vector |
fArray
|
Constructor Summary | |
UnboundedBuffer()
Constructs an unbounded buffer with the given capacity. |
Method Summary | |
int |
length()
Length of queue. |
void |
put(java.lang.Object x)
Puts an object into the buffer with the given capacity. |
java.lang.Object |
take(long timeout)
Takes an object from the queue. |
Methods inherited from class java.lang.Object |
clone,
equals,
finalize,
getClass,
hashCode,
notify,
notifyAll,
toString,
wait,
wait,
wait |
Field Detail |
protected java.util.Vector fArray
Constructor Detail |
public UnboundedBuffer()
Method Detail |
public int length()
public void put(java.lang.Object x)
public java.lang.Object take(long timeout)
|
|||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||
SUMMARY: INNER | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |