|
Spring Integration | |||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
public interface MessageGroupStore
Interface for storage operations on groups of messages linked by a group id.
Method Summary | |
---|---|
MessageGroup |
addMessageToGroup(Object groupId,
Message<?> message)
Store a message with an association to a group id. |
int |
expireMessageGroups(long timeout)
Extract all expired groups (whose timestamp is older than the current time less the threshold provided) and call each of the registered callbacks on them in turn. |
MessageGroup |
getMessageGroup(Object groupId)
Return all Messages currently in the MessageStore that were stored using addMessageToGroup(Object, Message) with this group id. |
MessageGroup |
markMessageGroup(MessageGroup group)
Persist the mark on all the messages from the group. |
void |
registerMessageGroupExpiryCallback(MessageGroupCallback callback)
Register a callback for when a message group is expired through expireMessageGroups(long) . |
MessageGroup |
removeMessageFromGroup(Object key,
Message<?> messageToMark)
Persist a mark on a single message from the group. |
void |
removeMessageGroup(Object groupId)
Remove the message group with this id. |
Method Detail |
---|
MessageGroup getMessageGroup(Object groupId)
addMessageToGroup(Object, Message)
with this group id.
MessageGroup addMessageToGroup(Object groupId, Message<?> message)
groupId
- the group id to store the message undermessage
- a messageMessageGroup markMessageGroup(MessageGroup group)
group
- a MessageGroup with no unmarked messagesMessageGroup removeMessageFromGroup(Object key, Message<?> messageToMark)
key
- the groupId for the group containing the messagemessageToMark
- the message to be markedvoid removeMessageGroup(Object groupId)
groupId
- the id of the group to removevoid registerMessageGroupExpiryCallback(MessageGroupCallback callback)
expireMessageGroups(long)
.
callback
- a callback to execute when a message group is cleaned upint expireMessageGroups(long timeout)
timeout
- the timeout threshold to use
registerMessageGroupExpiryCallback(MessageGroupCallback)
|
Spring Integration | |||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |