Class DisposableResult<I,U>

java.lang.Object
org.axonframework.axonserver.connector.query.subscription.DisposableResult<I,U>
Type Parameters:
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
All Implemented Interfaces:
AutoCloseable, Registration, SubscriptionQueryResult<I,U>

@Deprecated public class DisposableResult<I,U> extends Object implements SubscriptionQueryResult<I,U>
Deprecated.
in through use of the AxonServer java connector
A decorator of the SubscriptionQueryResult which adds the cancel() operation.
Since:
4.0
Author:
Sara Pellegrini
  • Constructor Details

  • Method Details

    • initialResult

      public reactor.core.publisher.Mono<I> initialResult()
      Deprecated.
      Description copied from interface: SubscriptionQueryResult
      Subscribing to this mono will trigger invocation of query handler. The return value of that query handler will be passed to the mono, once it's ready.
      Specified by:
      initialResult in interface SubscriptionQueryResult<I,U>
      Returns:
      the mono representing the initial result
    • updates

      public reactor.core.publisher.Flux<U> updates()
      Deprecated.
      Description copied from interface: SubscriptionQueryResult
      When there is an update to the subscription query, it will be emitted to this flux.
      Specified by:
      updates in interface SubscriptionQueryResult<I,U>
      Returns:
      the flux representing the incremental updates
    • cancel

      public boolean cancel()
      Deprecated.
      Description copied from interface: Registration
      Cancels this Registration. If the Registration was already cancelled, no action is taken.
      Specified by:
      cancel in interface Registration
      Returns:
      true if this handler is successfully deregistered, false if this handler was not currently registered.