Class QueryUpdateMessageStream

java.lang.Object
org.axonframework.axonserver.connector.query.AbstractQueryResponseMessageStream<io.axoniq.axonserver.grpc.query.QueryUpdate>
org.axonframework.axonserver.connector.query.QueryUpdateMessageStream
All Implemented Interfaces:
MessageStream<QueryResponseMessage>

public class QueryUpdateMessageStream extends AbstractQueryResponseMessageStream<io.axoniq.axonserver.grpc.query.QueryUpdate>
A specialized implementation of AbstractQueryResponseMessageStream that processes a stream of QueryUpdate objects and transforms them into QueryResponseMessage instances. This class is used to handle query update, including error handling and response message creation.

This class relies on its abstract superclass to manage the underlying ResultStream, implementing functionality specific to QueryUpdate to determine whether a message represents an error and to transform such update into structured responses or exceptions.

  • Constructor Details

    • QueryUpdateMessageStream

      public QueryUpdateMessageStream(@Nonnull io.axoniq.axonserver.connector.ResultStream<io.axoniq.axonserver.grpc.query.QueryUpdate> stream)
      Initializes a new instance of the QueryResponseMessageStream which wraps a ResultStream of QueryUpdate objects.
      Parameters:
      stream - the ResultStream of QueryUpdate instances to be wrapped; must not be null. If null, a NullPointerException will be thrown.
  • Method Details