|
|||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||
SUMMARY: INNER | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
java.lang.Object | +--com.jpeterson.x10.embedded.X10Queue
Implements a simple FIFO queue. If no queue elements when get
is called, method will wait till a put
is performed.
Constructor Summary | |
X10Queue()
Create a new queue with an initial capacity of 20. |
|
X10Queue(int initCapacity)
Create a new queue with the specified initial capacity. |
Method Summary | |
java.lang.Object |
get()
Get an element from the beginning of the queue. |
void |
put(java.lang.Object obj)
Put an element on the end of the queue. |
Methods inherited from class java.lang.Object |
clone,
equals,
finalize,
getClass,
hashCode,
notify,
notifyAll,
toString,
wait,
wait,
wait |
Constructor Detail |
public X10Queue()
public X10Queue(int initCapacity)
initCapactiy
- Initial number of free slots in the queue. Will grow
to support more elements as needed.Method Detail |
public void put(java.lang.Object obj)
obj
- Object to put end of the queue.public java.lang.Object get()
|
|||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||
SUMMARY: INNER | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |