Interface GroupedMessage

  • All Superinterfaces:
    java.lang.Cloneable, PlatformMessage, java.io.Serializable
    All Known Implementing Classes:
    BulkUpdate, DocumentList

    public interface GroupedMessage
    extends PlatformMessage
    Grouped messages are processed in order relative to each other and are guaranteed to all fall on the same side of a commit/optimize/backup boundary. Only messages which implement this interface can participate in groups.
    • Method Detail

      • getGroupedMessageId

        GroupedMessageId getGroupedMessageId()
        Returns:
        the GroupedMessageId for this message
      • setGroupedMessageId

        void setGroupedMessageId​(GroupedMessageId groupedMessageId)
        Sets the GroupedMessageId for this message. This method should normally be used only for the first message in the group with subsequent messages being added to the group via addMessageToGroup(GroupedMessage).
        Parameters:
        groupedMessageId -
      • addMessageToGroup

        void addMessageToGroup​(GroupedMessage msg)
        Adds msg to the group. For ordering purposes, msg will appear after this.
        Parameters:
        msg -