public interface MessageGroupFactory
MessageGroup
factory strategy.
This strategy is used from the MessageGroup
-aware components, e.g. MessageGroupStore
.Modifier and Type | Method and Description |
---|---|
MessageGroup |
create(Collection<? extends Message<?>> messages,
Object groupId)
|
MessageGroup |
create(Collection<? extends Message<?>> messages,
Object groupId,
long timestamp,
boolean complete)
|
MessageGroup |
create(MessageGroupStore messageGroupStore,
Object groupId)
Create a
MessageGroup instance based on the provided groupId . |
MessageGroup |
create(MessageGroupStore messageGroupStore,
Object groupId,
long timestamp,
boolean complete)
Create a
MessageGroup instance based on the provided groupId . |
MessageGroup |
create(Object groupId)
Create a
MessageGroup instance based on the provided groupId . |
MessageGroup create(Object groupId)
MessageGroup
instance based on the provided groupId
.groupId
- the group id to use.MessageGroup
instance.MessageGroup create(Collection<? extends Message<?>> messages, Object groupId)
messages
- the messages for the group.groupId
- the group id to use.MessageGroup
instance.MessageGroup create(Collection<? extends Message<?>> messages, Object groupId, long timestamp, boolean complete)
MessageGroup
instance based on the provided groupId
and with the messages
for the group.
In addition the creating timestamp
and complete
flag may be used to customize
the target MessageGroup
object.messages
- the messages for the group.groupId
- the group id to use.timestamp
- the creation time.complete
- the boolean
flag to indicate that group is completed.MessageGroup
instance.MessageGroup create(MessageGroupStore messageGroupStore, Object groupId)
MessageGroup
instance based on the provided groupId
.
The MessageGroupStore
may be consulted for the messages and metadata for the MessageGroup
.messageGroupStore
- the MessageGroupStore
for additional MessageGroup
information.groupId
- the group id to use.MessageGroup
instance.MessageGroup create(MessageGroupStore messageGroupStore, Object groupId, long timestamp, boolean complete)
MessageGroup
instance based on the provided groupId
.
The MessageGroupStore
may be consulted for the messages and metadata for the MessageGroup
.
In addition the creating timestamp
and complete
flag may be used to customize
the target MessageGroup
object.messageGroupStore
- the MessageGroupStore
for additional MessageGroup
information.groupId
- the group id to use.timestamp
- the creation time.complete
- the boolean
flag to indicate that group is completed.MessageGroup
instance.