Class GenericSubscriptionQueryUpdateMessage<U>

java.lang.Object
org.axonframework.messaging.MessageDecorator<U>
org.axonframework.messaging.GenericResultMessage<U>
org.axonframework.queryhandling.GenericSubscriptionQueryUpdateMessage<U>
Type Parameters:
U - type of incremental update
All Implemented Interfaces:
Serializable, Message<U>, ResultMessage<U>, SubscriptionQueryUpdateMessage<U>

public class GenericSubscriptionQueryUpdateMessage<U> extends GenericResultMessage<U> implements SubscriptionQueryUpdateMessage<U>
Generic SubscriptionQueryUpdateMessage which holds incremental update of an subscription query.
Since:
3.3
Author:
Milan Savic
See Also:
  • Constructor Details

    • GenericSubscriptionQueryUpdateMessage

      public GenericSubscriptionQueryUpdateMessage(U payload)
      Initializes GenericSubscriptionQueryUpdateMessage with incremental update.
      Parameters:
      payload - payload of the message which represent incremental update
    • GenericSubscriptionQueryUpdateMessage

      public GenericSubscriptionQueryUpdateMessage(Class<U> declaredType, U payload)
      Initializes GenericSubscriptionQueryUpdateMessage with incremental update of provided declaredType.
      Parameters:
      declaredType - the type of the update
      payload - the payload of the update
    • GenericSubscriptionQueryUpdateMessage

      public GenericSubscriptionQueryUpdateMessage(Class<U> declaredType, U payload, Map<String,?> metaData)
      Initializes GenericSubscriptionQueryUpdateMessage with incremental update of provided declaredType and metaData.
      Parameters:
      declaredType - the type of the update
      payload - the payload of the update
      metaData - the metadata of the update
    • GenericSubscriptionQueryUpdateMessage

      public GenericSubscriptionQueryUpdateMessage(Class<U> declaredType, Throwable exception, Map<String,?> metaData)
      Initialize the subscription query update message with given declaredType, exception and metaData.
      Parameters:
      declaredType - The declared type of the Subscription Query Update Message to be created
      exception - The exception describing the cause of an error
      metaData - The meta data to contain in the message
    • GenericSubscriptionQueryUpdateMessage

      protected GenericSubscriptionQueryUpdateMessage(Message<U> delegate)
      Initializes a new decorator with given delegate message. The decorator delegates to the delegate for the message's payload, metadata and identifier.
      Parameters:
      delegate - the message delegate
  • Method Details