I
- a generic specifying the type of the initial result of the SubscriptionQueryResult
U
- a generic specifying the type of the subsequent updates of the SubscriptionQueryResult
@Deprecated public class DeserializedResult<I,U> extends Object implements SubscriptionQueryResult<QueryResponseMessage<I>,SubscriptionQueryUpdateMessage<U>>
SubscriptionQueryUpdateMessage
to deserialize a QueryResponseMessage
and QueryUpdate
messages.Constructor and Description |
---|
DeserializedResult(SubscriptionQueryResult<io.axoniq.axonserver.grpc.query.QueryResponse,io.axoniq.axonserver.grpc.query.QueryUpdate> delegate,
SubscriptionMessageSerializer serializer)
Deprecated.
Instantiate a
DeserializedResult wrapping the delegate which will be serialized by the given
serializer . |
Modifier and Type | Method and Description |
---|---|
boolean |
cancel()
Deprecated.
Cancels this Registration.
|
reactor.core.publisher.Mono<QueryResponseMessage<I>> |
initialResult()
Deprecated.
Subscribing to this mono will trigger invocation of query handler.
|
reactor.core.publisher.Flux<SubscriptionQueryUpdateMessage<U>> |
updates()
Deprecated.
When there is an update to the subscription query, it will be emitted to this flux.
|
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
handle
close
public DeserializedResult(SubscriptionQueryResult<io.axoniq.axonserver.grpc.query.QueryResponse,io.axoniq.axonserver.grpc.query.QueryUpdate> delegate, SubscriptionMessageSerializer serializer)
DeserializedResult
wrapping the delegate
which will be serialized by the given
serializer
.delegate
- a SubscriptionQueryResult
which will be wrappedserializer
- a SubscriptionMessageSerializer
used to serialize the initial results and the
subsequent updatespublic reactor.core.publisher.Mono<QueryResponseMessage<I>> initialResult()
SubscriptionQueryResult
initialResult
in interface SubscriptionQueryResult<QueryResponseMessage<I>,SubscriptionQueryUpdateMessage<U>>
public reactor.core.publisher.Flux<SubscriptionQueryUpdateMessage<U>> updates()
SubscriptionQueryResult
updates
in interface SubscriptionQueryResult<QueryResponseMessage<I>,SubscriptionQueryUpdateMessage<U>>
public boolean cancel()
Registration
cancel
in interface Registration
true
if this handler is successfully unregistered, false
if this handler
was not currently registered.Copyright © 2010–2022. All rights reserved.