|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
This is the generic interface that all queue classes must implement.
Method Summary | |
void |
add(java.lang.Object obj)
|
void |
clear()
|
boolean |
isEmpty()
|
boolean |
isThreadSafe()
|
java.lang.Object |
peek()
This method is implemented only for non-threadsafe queues so that it does not have InterruptedException in its signature. |
java.lang.Object |
peek(boolean blocking)
|
java.lang.Object |
peek(int timeoutMillis)
|
java.lang.Object |
remove()
This method is implemented only for non-threadsafe queues so that it does not have InterruptedException in its signature. |
java.lang.Object |
remove(boolean blocking)
|
java.lang.Object |
remove(int timeoutMillis)
|
int |
size()
|
Method Detail |
public void add(java.lang.Object obj)
public java.lang.Object remove()
public java.lang.Object remove(boolean blocking) throws java.lang.InterruptedException
java.lang.InterruptedException
public java.lang.Object remove(int timeoutMillis) throws java.lang.InterruptedException, TimeoutException
java.lang.InterruptedException
TimeoutException
public java.lang.Object peek()
public java.lang.Object peek(boolean blocking) throws java.lang.InterruptedException
java.lang.InterruptedException
public java.lang.Object peek(int timeoutMillis) throws java.lang.InterruptedException, TimeoutException
java.lang.InterruptedException
TimeoutException
public int size()
public boolean isEmpty()
public void clear()
public boolean isThreadSafe()
|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |