Interface MessageGroupFactory
- All Known Implementing Classes:
- SimpleMessageGroupFactory
public interface MessageGroupFactory
The 
MessageGroup factory strategy.
 This strategy is used from the MessageGroup-aware components, e.g. MessageGroupStore.- Since:
- 4.3
- Author:
- Artem Bilan
- 
Method SummaryModifier and TypeMethodDescriptionCreate aMessageGroupinstance based on the providedgroupId.create(Collection<? extends Message<?>> messages, Object groupId) create(Collection<? extends Message<?>> messages, Object groupId, long timestamp, boolean complete) create(MessageGroupStore messageGroupStore, Object groupId) Create aMessageGroupinstance based on the providedgroupId.create(MessageGroupStore messageGroupStore, Object groupId, long timestamp, boolean complete) Create aMessageGroupinstance based on the providedgroupId.
- 
Method Details- 
createCreate aMessageGroupinstance based on the providedgroupId.- Parameters:
- groupId- the group id to use.
- Returns:
- the MessageGroupinstance.
 
- 
create- Parameters:
- messages- the messages for the group.
- groupId- the group id to use.
- Returns:
- the MessageGroupinstance.
 
- 
createMessageGroup create(Collection<? extends Message<?>> messages, Object groupId, long timestamp, boolean complete) Create aMessageGroupinstance based on the providedgroupIdand with themessagesfor the group. In addition the creatingtimestampandcompleteflag may be used to customize the targetMessageGroupobject.- Parameters:
- messages- the messages for the group.
- groupId- the group id to use.
- timestamp- the creation time.
- complete- the- booleanflag to indicate that group is completed.
- Returns:
- the MessageGroupinstance.
 
- 
createCreate aMessageGroupinstance based on the providedgroupId. TheMessageGroupStoremay be consulted for the messages and metadata for theMessageGroup.- Parameters:
- messageGroupStore- the- MessageGroupStorefor additional- MessageGroupinformation.
- groupId- the group id to use.
- Returns:
- the MessageGroupinstance.
 
- 
createMessageGroup create(MessageGroupStore messageGroupStore, Object groupId, long timestamp, boolean complete) Create aMessageGroupinstance based on the providedgroupId. TheMessageGroupStoremay be consulted for the messages and metadata for theMessageGroup. In addition the creatingtimestampandcompleteflag may be used to customize the targetMessageGroupobject.- Parameters:
- messageGroupStore- the- MessageGroupStorefor additional- MessageGroupinformation.
- groupId- the group id to use.
- timestamp- the creation time.
- complete- the- booleanflag to indicate that group is completed.
- Returns:
- the MessageGroupinstance.
 
 
-