Interface Registration

All Superinterfaces:
AutoCloseable
All Known Subinterfaces:
SubscriptionQueryResult<I,U>
All Known Implementing Classes:
AxonServerRegistration, AxonServerSubscriptionQueryResult, DefaultSubscriptionQueryResult, DeserializedResult, DisposableResult
Functional Interface:
This is a functional interface and can therefore be used as the assignment target for a lambda expression or method reference.

@FunctionalInterface public interface Registration extends AutoCloseable
Interface that provides a mechanism to cancel a registration.
Since:
3.0
Author:
Rene de Waele
  • Method Summary

    Modifier and Type
    Method
    Description
    boolean
    Cancels this Registration.
    default void
    Cancels this Registration.
  • Method Details

    • close

      default void close()
      Cancels this Registration. By default this simply calls cancel().

      Specified by:
      close in interface AutoCloseable
    • cancel

      boolean cancel()
      Cancels this Registration. If the Registration was already cancelled, no action is taken.
      Returns:
      true if this handler is successfully deregistered, false if this handler was not currently registered.