|
|||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
java.lang.Object org.springframework.integration.store.SimpleMessageStore
public class SimpleMessageStore
Map-based implementation of MessageStore
that enforces a maximum capacity.
Constructor Summary | |
---|---|
SimpleMessageStore(int capacity)
|
Method Summary | ||
---|---|---|
Message<?> |
delete(java.lang.Object key)
Remove the Message with the given id from the MessageStore, if present, and return it. |
|
Message<?> |
get(java.lang.Object key)
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 correlationKey)
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. |
|
int |
size()
|
Methods inherited from class java.lang.Object |
---|
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
Constructor Detail |
---|
public SimpleMessageStore(int capacity)
Method Detail |
---|
public <T> Message<T> put(Message<T> message)
MessageStore
MessageStore.get(Object)
and
MessageStore.delete(Object)
behave properly. If available, its
correlationId header will also be stored so that the
MessageStore.list(Object)
method behaves properly.
put
in interface MessageStore
public Message<?> get(java.lang.Object key)
MessageStore
get
in interface MessageStore
public java.util.List<Message<?>> list()
MessageStore
list
in interface MessageStore
public Message<?> delete(java.lang.Object key)
MessageStore
delete
in interface MessageStore
public int size()
public java.util.List<Message<?>> list(java.lang.Object correlationKey)
MessageStore
list
in interface MessageStore
MessageHeaders.getCorrelationId()
|
|||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |