public interface BasicMessageGroupStore
Modifier and Type | Method and Description |
---|---|
MessageGroup |
addMessageToGroup(Object groupId,
Message<?> message)
Store a message with an association to a group id.
|
MessageGroup |
getMessageGroup(Object groupId)
Return all Messages currently in the MessageStore that were stored using
addMessageToGroup(Object, Message) with this group id. |
int |
messageGroupSize(Object groupId)
Returns the size of this MessageGroup.
|
Message<?> |
pollMessageFromGroup(Object groupId)
Polls Message from this
MessageGroup (in FIFO style if supported by the implementation)
while also removing the polled Message |
void |
removeMessageGroup(Object groupId)
Remove the message group with this id.
|
@ManagedAttribute int messageGroupSize(Object groupId)
groupId
- The group identifier.MessageGroup getMessageGroup(Object groupId)
addMessageToGroup(Object, Message)
with this group id.groupId
- The group identifier.MessageGroup addMessageToGroup(Object groupId, Message<?> message)
groupId
- The group id to store the message under.message
- A message.Message<?> pollMessageFromGroup(Object groupId)
MessageGroup
(in FIFO style if supported by the implementation)
while also removing the polled Message
groupId
- The group identifier.void removeMessageGroup(Object groupId)
groupId
- The id of the group to remove.