public interface MessageGroup
The message group allows implementations to be mutable, but this behavior is optional. Implementations should take care to document their thread safety and mutability.
Modifier and Type | Method and Description |
---|---|
boolean |
canAdd(Message<?> message)
Query if the message can be added.
|
void |
complete()
Complete the group.
|
Object |
getGroupId() |
long |
getLastModified() |
int |
getLastReleasedMessageSequenceNumber() |
Collection<Message<?>> |
getMessages()
Returns all available Messages from the group at the time of invocation
|
Message<?> |
getOne() |
int |
getSequenceSize() |
long |
getTimestamp() |
boolean |
isComplete() |
int |
size() |
boolean canAdd(Message<?> message)
message
- The message.Collection<Message<?>> getMessages()
Object getGroupId()
int getLastReleasedMessageSequenceNumber()
boolean isComplete()
void complete()
int getSequenceSize()
int size()
Message<?> getOne()
long getTimestamp()
long getLastModified()