Package org.axonframework.common
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.
Interface that provides a mechanism to cancel a registration.
- Since:
- 3.0
- Author:
- Rene de Waele
-
Method Summary
-
Method Details
-
close
default void close()Cancels this Registration. By default this simply callscancel().- Specified by:
closein interfaceAutoCloseable
-
cancel
boolean cancel()Cancels this Registration. If the Registration was already cancelled, no action is taken.- Returns:
trueif this handler is successfully deregistered,falseif this handler was not currently registered.
-