Interface SubscriptionQueryUpdateMessage<U>

Type Parameters:
U - type of incremental update
All Superinterfaces:
Message<U>, ResultMessage<U>, Serializable
All Known Implementing Classes:
GenericSubscriptionQueryUpdateMessage

public interface SubscriptionQueryUpdateMessage<U> extends ResultMessage<U>
Message which holds incremental update of an subscription query.
Since:
3.3
Author:
Milan Savic
  • Method Details

    • withMetaData

      SubscriptionQueryUpdateMessage<U> withMetaData(@Nonnull Map<String,?> metaData)
      Description copied from interface: Message
      Returns a copy of this Message with the given metaData. The payload remains unchanged.

      While the implementation returned may be different than the implementation of this, implementations must take special care in returning the same type of Message (e.g. EventMessage, DomainEventMessage) to prevent errors further downstream.

      Specified by:
      withMetaData in interface Message<U>
      Specified by:
      withMetaData in interface ResultMessage<U>
      Parameters:
      metaData - The new MetaData for the Message
      Returns:
      a copy of this message with the given MetaData
    • andMetaData

      SubscriptionQueryUpdateMessage<U> andMetaData(@Nonnull Map<String,?> metaData)
      Description copied from interface: Message
      Returns a copy of this Message with it MetaData merged with the given metaData. The payload remains unchanged.
      Specified by:
      andMetaData in interface Message<U>
      Specified by:
      andMetaData in interface ResultMessage<U>
      Parameters:
      metaData - The MetaData to merge with
      Returns:
      a copy of this message with the given MetaData