|
|||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
public interface BufferAdd
This interface defines methods that must be implemented by a buffer to allow components to add messages into it. Such an interface is used by producers of messages.
Note: buffer implementations MUST BE thread-safe .
Field Summary | |
---|---|
static String |
ITF_NAME
The commonly used name to refer to an interface with this signature. |
Method Summary | |
---|---|
void |
add(Message message)
Adds the specified message to the buffer. |
boolean |
tryAdd(Message message)
Adds the specified message to the buffer. |
Field Detail |
---|
static final String ITF_NAME
Method Detail |
---|
void add(Message message) throws InterruptedException
message
- the message to be added; never null
.
InterruptedException
- if it is interrupted while waiting for a
message to be removed.boolean tryAdd(Message message)
message
- the message to be added; never null
.
true
if the message has been added.
|
|||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |