Class GenericStreamingQueryMessage<Q,R>

java.lang.Object
org.axonframework.messaging.MessageDecorator<Q>
org.axonframework.queryhandling.GenericQueryMessage<Q,org.reactivestreams.Publisher<R>>
org.axonframework.queryhandling.GenericStreamingQueryMessage<Q,R>
Type Parameters:
Q - the type of streaming query payload
R - the type of the result streamed via Flux
All Implemented Interfaces:
Serializable, Message<Q>, QueryMessage<Q,org.reactivestreams.Publisher<R>>, StreamingQueryMessage<Q,R>

public class GenericStreamingQueryMessage<Q,R> extends GenericQueryMessage<Q,org.reactivestreams.Publisher<R>> implements StreamingQueryMessage<Q,R>
Generic implementation of the StreamingQueryMessage.
Since:
4.6.0
Author:
Milan Savic, Stefan Dragisic
See Also:
  • Constructor Details

    • GenericStreamingQueryMessage

      public GenericStreamingQueryMessage(Q payload, Class<R> responseType)
      Initializes the message with the given payload and expected responseType. The query name is set to the fully qualified class name of the payload.
      Parameters:
      payload - The payload expressing the query
      responseType - The expected response type
    • GenericStreamingQueryMessage

      public GenericStreamingQueryMessage(Q payload, String queryName, Class<R> responseType)
      Initializes the message with the given payload, queryName and expected responseType.
      Parameters:
      payload - The payload expressing the query
      queryName - The name identifying the query to execute
      responseType - The expected response type
    • GenericStreamingQueryMessage

      public GenericStreamingQueryMessage(Q payload, ResponseType<org.reactivestreams.Publisher<R>> responseType)
      Initializes the message with the given payload and expected responseType. The query name is set to the fully qualified class name of the payload.
      Parameters:
      payload - The payload expressing the query
      responseType - The expected response type
    • GenericStreamingQueryMessage

      public GenericStreamingQueryMessage(Q payload, String queryName, ResponseType<org.reactivestreams.Publisher<R>> responseType)
      Initializes the message with the given payload, queryName and expected responseType.
      Parameters:
      payload - The payload expressing the query
      queryName - The name identifying the query to execute
      responseType - The expected response type
    • GenericStreamingQueryMessage

      public GenericStreamingQueryMessage(Message<Q> delegate, String queryName, Class<R> responseType)
      Initializes the message with the given delegate, queryName and expected responseType.
      Parameters:
      delegate - The message containing the payload and meta-data for this message
      queryName - The name identifying the query to execute
      responseType - The expected response type
    • GenericStreamingQueryMessage

      public GenericStreamingQueryMessage(Message<Q> delegate, String queryName, ResponseType<org.reactivestreams.Publisher<R>> responseType)
      Initialize the Query Message, using given delegate as the carrier of payload and metadata and given queryName and expecting the given responseType.
      Parameters:
      delegate - The message containing the payload and meta-data for this message
      queryName - The name identifying the query to execute
      responseType - The expected response type
  • Method Details