Class UpdateHandlerRegistration<U>

java.lang.Object
org.axonframework.queryhandling.UpdateHandlerRegistration<U>

public class UpdateHandlerRegistration<U> extends Object
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 Details

  • Method Details

    • getRegistration

      public Registration getRegistration()
      Gets the registration.
      Returns:
      the registration used for cancellation of updates
    • getUpdates

      public reactor.core.publisher.Flux<SubscriptionQueryUpdateMessage<U>> getUpdates()
      Gets the updates.
      Returns:
      a Flux for subscribing to the update stream
    • complete

      public void complete()
      Completes the getUpdates() Flux. The consumer can use this method to indicate it is no longer interested in updates. This operation automatically closes the registration too.