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
  • Method Summary

    Modifier and Type Method Description
    MessageGroup create​(java.lang.Object groupId)
    Create a MessageGroup instance based on the provided groupId.
    MessageGroup create​(java.util.Collection<? extends org.springframework.messaging.Message<?>> messages, java.lang.Object groupId)
    Create a MessageGroup instance based on the provided groupId and with the messages for the group.
    MessageGroup create​(java.util.Collection<? extends org.springframework.messaging.Message<?>> messages, java.lang.Object groupId, long timestamp, boolean complete)
    Create a MessageGroup instance based on the provided groupId and with the messages for the group.
    MessageGroup create​(MessageGroupStore messageGroupStore, java.lang.Object groupId)
    Create a MessageGroup instance based on the provided groupId.
    MessageGroup create​(MessageGroupStore messageGroupStore, java.lang.Object groupId, long timestamp, boolean complete)
    Create a MessageGroup instance based on the provided groupId.
  • Method Details

    • create

      MessageGroup create​(java.lang.Object groupId)
      Create a MessageGroup instance based on the provided groupId.
      Parameters:
      groupId - the group id to use.
      Returns:
      the MessageGroup instance.
    • create

      MessageGroup create​(java.util.Collection<? extends org.springframework.messaging.Message<?>> messages, java.lang.Object groupId)
      Create a MessageGroup instance based on the provided groupId and with the messages for the group.
      Parameters:
      messages - the messages for the group.
      groupId - the group id to use.
      Returns:
      the MessageGroup instance.
    • create

      MessageGroup create​(java.util.Collection<? extends org.springframework.messaging.Message<?>> messages, java.lang.Object groupId, long timestamp, boolean complete)
      Create a 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.
      Parameters:
      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.
      Returns:
      the MessageGroup instance.
    • create

      MessageGroup create​(MessageGroupStore messageGroupStore, java.lang.Object groupId)
      Create a MessageGroup instance based on the provided groupId. The MessageGroupStore may be consulted for the messages and metadata for the MessageGroup.
      Parameters:
      messageGroupStore - the MessageGroupStore for additional MessageGroup information.
      groupId - the group id to use.
      Returns:
      the MessageGroup instance.
    • create

      MessageGroup create​(MessageGroupStore messageGroupStore, java.lang.Object groupId, long timestamp, boolean complete)
      Create a 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.
      Parameters:
      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.
      Returns:
      the MessageGroup instance.