Class SimpleMessageGroupFactory
java.lang.Object
org.springframework.integration.store.SimpleMessageGroupFactory
- All Implemented Interfaces:
- MessageGroupFactory
The 
MessageGroupFactory implementation to produce SimpleMessageGroup instances.
 The SimpleMessageGroupFactory.GroupType modificator specifies the internal collection for the SimpleMessageGroup.
 The SimpleMessageGroupFactory.GroupType.HASH_SET is the default type.- Since:
- 4.3
- Author:
- Artem Bilan
- 
Nested Class SummaryNested Classes
- 
Constructor SummaryConstructorsConstructorDescription
- 
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.
- 
Constructor Details- 
SimpleMessageGroupFactorypublic SimpleMessageGroupFactory()
- 
SimpleMessageGroupFactory
 
- 
- 
Method Details- 
createDescription copied from interface:MessageGroupFactoryCreate aMessageGroupinstance based on the providedgroupId.- Specified by:
- createin interface- MessageGroupFactory
- Parameters:
- groupId- the group id to use.
- Returns:
- the MessageGroupinstance.
 
- 
createDescription copied from interface:MessageGroupFactory- Specified by:
- createin interface- MessageGroupFactory
- Parameters:
- messages- the messages for the group.
- groupId- the group id to use.
- Returns:
- the MessageGroupinstance.
 
- 
createpublic MessageGroup create(Collection<? extends Message<?>> messages, Object groupId, long timestamp, boolean complete) Description copied from interface:MessageGroupFactoryCreate aMessageGroupinstance based on the providedgroupIdand with themessagesfor the group. In addition the creatingtimestampandcompleteflag may be used to customize the targetMessageGroupobject.- Specified by:
- createin interface- MessageGroupFactory
- 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.
 
- 
createDescription copied from interface:MessageGroupFactoryCreate aMessageGroupinstance based on the providedgroupId. TheMessageGroupStoremay be consulted for the messages and metadata for theMessageGroup.- Specified by:
- createin interface- MessageGroupFactory
- Parameters:
- messageGroupStore- the- MessageGroupStorefor additional- MessageGroupinformation.
- groupId- the group id to use.
- Returns:
- the MessageGroupinstance.
 
- 
createpublic MessageGroup create(MessageGroupStore messageGroupStore, Object groupId, long timestamp, boolean complete) Description copied from interface:MessageGroupFactoryCreate 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.- Specified by:
- createin interface- MessageGroupFactory
- 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.
 
 
-