|
||||||||||
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 adding messages to its begining or to its end.
Field Summary | |
static String |
ITF_NAME
The commonly used name to refer to this interface. |
Method Summary | |
void |
addFirst(Message message)
Inserts the given message at the beginning of this buffer. |
void |
addLast(Message message)
Inserts the given message at the end of this buffer. |
Field Detail |
public static final String ITF_NAME
Method Detail |
public void addFirst(Message message) throws InterruptedException
message
- the message to be inserted at the beginning of this buffer.
InterruptedException
- if it is interrupted while waiting for a
message to be removed.public void addLast(Message message) throws InterruptedException
message
- the message to be inserted at the end of this buffer.
InterruptedException
- if it is interrupted while waiting for a
message to be removed.
|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |