|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
This interface defines methods that must be implemented by a buffer for removing messages from its begining or from its end.
Field Summary | |
static String |
ITF_NAME
The commonly used name to refer to this interface. |
Method Summary | |
Message |
getFirst()
Returns the first message in this buffer. |
Message |
getLast()
Returns the last message in this buffer. |
Message |
removeFirst()
Removes and returns the first message from this buffer. |
Message |
removeLast()
Removes and returns the last message from this buffer. |
Field Detail |
public static final String ITF_NAME
Method Detail |
public Message getFirst() throws InterruptedException
InterruptedException
- if it is interrupted while waiting for a
message to be added.public Message removeFirst() throws InterruptedException
InterruptedException
- if it is interrupted while waiting for a
message to be added.public Message getLast() throws InterruptedException
InterruptedException
- if it is interrupted while waiting for a
message to be added.public Message removeLast() throws InterruptedException
InterruptedException
- if it is interrupted while waiting for a
message to be added.
|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |