Modifier and Type | Class and Description |
---|---|
class |
GrpcBackedResponseMessage<R>
Wrapper that allows clients to access a gRPC
QueryResponse as a QueryResponseMessage . |
Modifier and Type | Method and Description |
---|---|
QueryResponseMessage<?> |
QuerySerializer.deserializeResponse(io.axoniq.axonserver.grpc.query.QueryResponse queryResponse)
Converts a
QueryResponse into a QueryResponseMessage . |
<R> QueryResponseMessage<R> |
QuerySerializer.deserializeResponse(io.axoniq.axonserver.grpc.query.QueryResponse queryResponse,
ResponseType<R> expectedResponseType)
Convert a
QueryResponse into a QueryResponseMessage . |
Modifier and Type | Method and Description |
---|---|
io.axoniq.axonserver.grpc.query.QueryResponse |
QuerySerializer.serializeResponse(QueryResponseMessage<?> queryResponse,
String requestMessageId)
Convert a
QueryResponseMessage into a QueryResponse . |
Modifier and Type | Method and Description |
---|---|
<I> QueryResponseMessage<I> |
SubscriptionMessageSerializer.deserialize(io.axoniq.axonserver.grpc.query.QueryResponse queryResponse)
Deserializes the given
queryResponse into a QueryResponseMessage . |
Modifier and Type | Method and Description |
---|---|
reactor.core.publisher.Mono<QueryResponseMessage<I>> |
DeserializedResult.initialResult()
Deprecated.
|
reactor.core.publisher.Mono<QueryResponseMessage<I>> |
AxonServerSubscriptionQueryResult.initialResult() |
Modifier and Type | Class and Description |
---|---|
class |
ConvertingResponseMessage<R>
Implementation of a QueryResponseMessage that is aware of the requested response type and performs a just-in-time
conversion to ensure the response is formatted as requested.
|
Modifier and Type | Method and Description |
---|---|
QueryResponseMessage<R> |
ConvertingResponseMessage.andMetaData(Map<String,?> additionalMetaData) |
QueryResponseMessage<R> |
ConvertingResponseMessage.withMetaData(Map<String,?> metaData) |
Constructor and Description |
---|
ConvertingResponseMessage(ResponseType<R> expectedResponseType,
QueryResponseMessage<?> responseMessage)
Initialize a response message, using
expectedResponseType to convert the payload from the responseMessage , if necessary. |
Modifier and Type | Class and Description |
---|---|
class |
GenericQueryResponseMessage<R>
QueryResponseMessage implementation that takes all properties as constructor parameters.
|
Modifier and Type | Method and Description |
---|---|
QueryResponseMessage<T> |
QueryResponseMessage.andMetaData(Map<String,?> additionalMetaData)
Returns a copy of this QueryResponseMessage with its MetaData merged with given
metaData . |
static <R> QueryResponseMessage<R> |
GenericQueryResponseMessage.asNullableResponseMessage(Class<R> declaredType,
Object result)
Creates a QueryResponseMessage for the given
result with a declaredType as the result type. |
static <R> QueryResponseMessage<R> |
GenericQueryResponseMessage.asResponseMessage(Class<R> declaredType,
Throwable exception)
Creates a Query Response Message with given
declaredType and exception . |
static <R> QueryResponseMessage<R> |
GenericQueryResponseMessage.asResponseMessage(Object result)
Creates a QueryResponseMessage for the given
result . |
QueryResponseMessage<T> |
QueryResponseMessage.withMetaData(Map<String,?> metaData)
Returns a copy of this QueryResponseMessage with the given
metaData . |
Modifier and Type | Method and Description |
---|---|
<Q,R> CompletableFuture<QueryResponseMessage<R>> |
SimpleQueryBus.query(QueryMessage<Q,R> query) |
<Q,R> CompletableFuture<QueryResponseMessage<R>> |
QueryBus.query(QueryMessage<Q,R> query)
Dispatch the given
query to a single QueryHandler subscribed to the given query 's queryName and
responseType. |
<Q,R> Stream<QueryResponseMessage<R>> |
SimpleQueryBus.scatterGather(QueryMessage<Q,R> query,
long timeout,
TimeUnit unit) |
<Q,R> Stream<QueryResponseMessage<R>> |
QueryBus.scatterGather(QueryMessage<Q,R> query,
long timeout,
TimeUnit unit)
Dispatch the given
query to all QueryHandlers subscribed to the given query 's
queryName/responseType. |
<Q,R> org.reactivestreams.Publisher<QueryResponseMessage<R>> |
SimpleQueryBus.streamingQuery(StreamingQueryMessage<Q,R> query) |
default <Q,R> org.reactivestreams.Publisher<QueryResponseMessage<R>> |
QueryBus.streamingQuery(StreamingQueryMessage<Q,R> query)
Builds a
Publisher of responses to the given query . |
default <Q,I,U> SubscriptionQueryResult<QueryResponseMessage<I>,SubscriptionQueryUpdateMessage<U>> |
QueryBus.subscriptionQuery(SubscriptionQueryMessage<Q,I,U> query)
Dispatch the given
query to a single QueryHandler subscribed to the given query 's
queryName/initialResponseType/updateResponseType. |
<Q,I,U> SubscriptionQueryResult<QueryResponseMessage<I>,SubscriptionQueryUpdateMessage<U>> |
SimpleQueryBus.subscriptionQuery(SubscriptionQueryMessage<Q,I,U> query,
int updateBufferSize) |
default <Q,I,U> SubscriptionQueryResult<QueryResponseMessage<I>,SubscriptionQueryUpdateMessage<U>> |
QueryBus.subscriptionQuery(SubscriptionQueryMessage<Q,I,U> query,
int updateBufferSize)
Dispatch the given
query to a single QueryHandler subscribed to the given query 's
queryName/initialResponseType/updateResponseType. |
<Q,I,U> SubscriptionQueryResult<QueryResponseMessage<I>,SubscriptionQueryUpdateMessage<U>> |
SimpleQueryBus.subscriptionQuery(SubscriptionQueryMessage<Q,I,U> query,
SubscriptionQueryBackpressure backpressure,
int updateBufferSize)
Deprecated.
in favor use of {
SimpleQueryBus.subscriptionQuery(SubscriptionQueryMessage, int) |
default <Q,I,U> SubscriptionQueryResult<QueryResponseMessage<I>,SubscriptionQueryUpdateMessage<U>> |
QueryBus.subscriptionQuery(SubscriptionQueryMessage<Q,I,U> query,
SubscriptionQueryBackpressure backpressure,
int updateBufferSize)
Deprecated.
in favour of using {
QueryBus.subscriptionQuery(SubscriptionQueryMessage, int) } |
Copyright © 2010–2024. All rights reserved.