I - a generic specifying the type of the initial result of the SubscriptionQueryResultU - a generic specifying the type of the subsequent updates of the SubscriptionQueryResultpublic class DeserializedResult<I,U> extends Object implements org.axonframework.queryhandling.SubscriptionQueryResult<org.axonframework.queryhandling.QueryResponseMessage<I>,org.axonframework.queryhandling.SubscriptionQueryUpdateMessage<U>>
SubscriptionQueryUpdateMessage to deserialize a QueryResponseMessage and
QueryUpdate messages.| Constructor and Description |
|---|
DeserializedResult(org.axonframework.queryhandling.SubscriptionQueryResult<QueryResponse,QueryUpdate> delegate,
SubscriptionMessageSerializer serializer)
Instantiate a
DeserializedResult wrapping the delegate which will be serialized by the given
serializer. |
| Modifier and Type | Method and Description |
|---|---|
boolean |
cancel() |
reactor.core.publisher.Mono<org.axonframework.queryhandling.QueryResponseMessage<I>> |
initialResult() |
reactor.core.publisher.Flux<org.axonframework.queryhandling.SubscriptionQueryUpdateMessage<U>> |
updates() |
public DeserializedResult(org.axonframework.queryhandling.SubscriptionQueryResult<QueryResponse,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<org.axonframework.queryhandling.QueryResponseMessage<I>> initialResult()
public reactor.core.publisher.Flux<org.axonframework.queryhandling.SubscriptionQueryUpdateMessage<U>> updates()
public boolean cancel()
cancel in interface org.axonframework.common.RegistrationCopyright © 2010–2019. All rights reserved.