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() |
java.lang.Object |
getGroupId() |
long |
getLastModified() |
int |
getLastReleasedMessageSequenceNumber()
Returns the sequenceNumber of the last released message.
|
java.util.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)
java.util.Collection<Message<?>> getMessages()
java.lang.Object getGroupId()
int getLastReleasedMessageSequenceNumber()
boolean isComplete()
void complete()
int getSequenceSize()
int size()
Message<?> getOne()
long getTimestamp()
long getLastModified()