|
|||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
Queue
TODO
Method Summary | |
boolean |
offer(Object o,
long timeout)
|
Object |
peek()
|
Object |
poll(long timeout)
|
void |
put(Object o)
Puts a new object in this queue and wait if necessary. |
int |
size()
Returns the number of elements in this queue. |
Object |
take()
Blocks and retrieves an object from this queue. |
Method Detail |
public int size()
public void put(Object o) throws InterruptedException
o
- the object to put
InterruptedException
public Object take() throws InterruptedException
InterruptedException
public Object peek() throws InterruptedException
InterruptedException
public Object poll(long timeout) throws InterruptedException
InterruptedException
public boolean offer(Object o, long timeout) throws InterruptedException
InterruptedException
|
|||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |