Package org.axonframework.queryhandling
Class UpdateHandlerRegistration<U>
java.lang.Object
org.axonframework.queryhandling.UpdateHandlerRegistration<U>
Result of registering an Update Handler. Contains a
Flux with updates and Registration to be
cancelled when we're no longer interested in updates.- Since:
- 4.0
- Author:
- Milan Savic
-
Constructor Summary
ConstructorsConstructorDescriptionUpdateHandlerRegistration(Registration registration, reactor.core.publisher.Flux<SubscriptionQueryUpdateMessage<U>> updates, Runnable completeHandler) -
Method Summary
Modifier and TypeMethodDescriptionvoidcomplete()Completes thegetUpdates()Flux.Gets the registration.reactor.core.publisher.Flux<SubscriptionQueryUpdateMessage<U>> Gets the updates.
-
Constructor Details
-
UpdateHandlerRegistration
public UpdateHandlerRegistration(Registration registration, reactor.core.publisher.Flux<SubscriptionQueryUpdateMessage<U>> updates, Runnable completeHandler) - Parameters:
registration- used to cancel the registrationupdates- used to subscribe to updates streamcompleteHandler- handler invoked oncomplete()
-
-
Method Details
-
getRegistration
Gets the registration.- Returns:
- the registration used for cancellation of updates
-
getUpdates
Gets the updates.- Returns:
- a
Fluxfor subscribing to the update stream
-
complete
public void complete()Completes thegetUpdates()Flux. The consumer can use this method to indicate it is no longer interested in updates. This operation automatically closes theregistrationtoo.
-