|
|||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | ||||||||
public interface MessageStore
Strategy interface for storing and retrieving messages.
| Method Summary | ||
|---|---|---|
|
addMessage(Message<T> message)
Put the provided Message into the MessageStore. |
|
Message<?> |
getMessage(java.util.UUID id)
Return the Message with the given id, or null if no Message with that id exists in the MessageStore. |
|
int |
getMessageCount()
Optional attribute giving the number of messages in the store. |
|
Message<?> |
removeMessage(java.util.UUID id)
Remove the Message with the given id from the MessageStore, if present, and return it. |
|
| Method Detail |
|---|
Message<?> getMessage(java.util.UUID id)
<T> Message<T> addMessage(Message<T> message)
getMessage(UUID) and removeMessage(UUID) behave properly. Since messages are
immutable, putting the same message more than once is a no-op.
Message<?> removeMessage(java.util.UUID id)
@ManagedAttribute int getMessageCount()
java.lang.UnsupportedOperationException - if not implemented
|
|||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | ||||||||