|
|||||||||
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. The interface mimics the semantics for REST for the methods named after REST operations. This is helpful when mapping to a RESTful API.
Method Summary | ||
---|---|---|
Message<?> |
delete(java.lang.Object id)
Remove the Message with the given id from the MessageStore, if present, and return it. |
|
Message<?> |
get(java.lang.Object id)
Return the Message with the given id, or null if no Message with that id exists in the MessageStore. |
|
java.util.List<Message<?>> |
list()
Return all Messages currently in the MessageStore. |
|
java.util.List<Message<?>> |
list(java.lang.Object correlationId)
Return all Messages currently in the MessageStore that contain the provided correlationId header value. |
|
|
put(Message<T> message)
Put the provided Message into the MessageStore. |
Method Detail |
---|
Message<?> get(java.lang.Object id)
<T> Message<T> put(Message<T> message)
get(Object)
and
delete(Object)
behave properly. If available, its
correlationId header will also be stored so that the
list(Object)
method behaves properly.
Message<?> delete(java.lang.Object id)
java.util.List<Message<?>> list()
java.util.List<Message<?>> list(java.lang.Object correlationId)
MessageHeaders.getCorrelationId()
|
|||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |