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