|
|||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
public interface BufferRemove
This interface defines methods that must be implemented by a buffer to allow components to get or delete messages from it. Such an interface is used by consumers of messages.
Note 1: all the messages that are stored in a buffer are not always available for removal (e.g. when the buffer implements an ordering policy). Note 2: 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 | |
---|---|
Message |
get()
Gets a message from the buffer. |
Message |
remove()
Removes a message from the buffer. |
Message |
removeAll()
Removes all the available messages from the buffer. |
Message |
tryGet()
Gets a message from the buffer. |
Message |
tryRemove()
Removes a message from the buffer. |
Field Detail |
---|
static final String ITF_NAME
Method Detail |
---|
Message get() throws InterruptedException
null
.
InterruptedException
- if it is interrupted while waiting for a
message to be added.Message tryGet()
null
otherwise.Message remove() throws InterruptedException
null
.
InterruptedException
- if it is interrupted while waiting for a
message to be added.Message tryRemove()
null
otherwise.Message removeAll()
null
. This method does not block.
null
if no message was available.
|
|||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |