|
||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||
public interface Queue
Queue TODO
| Method Summary | |
|---|---|
String |
getName()
|
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 |
|---|
int size()
void put(Object o)
throws InterruptedException
o - the object to put
InterruptedException
Object take()
throws InterruptedException
InterruptedException
Object peek()
throws InterruptedException
InterruptedException
Object poll(long timeout)
throws InterruptedException
InterruptedException
boolean offer(Object o,
long timeout)
throws InterruptedException
InterruptedExceptionString getName()
|
||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||