Class GroupedMessageId

  • All Implemented Interfaces:
    java.io.Serializable, java.lang.Cloneable, java.lang.Comparable<MessageId>

    public class GroupedMessageId
    extends MessageId
    implements java.lang.Cloneable
    An Id used to associate messages together into a group. All messages in a group share the same getGroupId() in their GroupedMessageIds. Only PlatformMessages which implement the GroupedMessage interface will be recognized by the system and processed as a group.
    See Also:
    Serialized Form
    • Constructor Detail

      • GroupedMessageId

        public GroupedMessageId​(java.lang.String groupId)
        Creates a new GroupedMessageId with groupId as the group id and with the message id set to 1.
        Parameters:
        groupId -
      • GroupedMessageId

        public GroupedMessageId​(java.lang.String groupId,
                                int[] id)
      • GroupedMessageId

        public GroupedMessageId​(java.lang.String groupId,
                                int[] parentParts,
                                int childId)
    • Method Detail

      • getGroupId

        public java.lang.String getGroupId()
      • toString

        public java.lang.String toString()
        Description copied from class: MessageId
        Overrides:
        toString in class MessageId
      • setGroupId

        public void setGroupId​(java.lang.String groupId)
      • addChild

        public GroupedMessageId addChild()
        Adds a child to this group. The return value should be set on the message to add to the group.
        Overrides:
        addChild in class MessageId
        Returns:
        the grouped message id for the child.
      • equals

        public boolean equals​(java.lang.Object obj)
        Overrides:
        equals in class MessageId