Class AxonServerRegistration
java.lang.Object
org.axonframework.axonserver.connector.command.AxonServerRegistration
- All Implemented Interfaces:
AutoCloseable,Registration
Wrapper around standard Axon Framework
Registration. Notifies messaging server when registration is cancelled
or closed, and delegates the close/cancel to the normal registration.- Since:
- 4.0
- Author:
- Marc Gathier
-
Constructor Summary
ConstructorsConstructorDescriptionAxonServerRegistration(Registration wrappedRegistration, Runnable closeCallback) Instantiate anAxonServerRegistration, which wraps the givenwrappedRegistrationand runs the providedcloseCallbackon aRegistration.close()andcancel()call -
Method Summary
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, waitMethods inherited from interface org.axonframework.common.Registration
close
-
Constructor Details
-
AxonServerRegistration
Instantiate anAxonServerRegistration, which wraps the givenwrappedRegistrationand runs the providedcloseCallbackon aRegistration.close()andcancel()call- Parameters:
wrappedRegistration- theRegistrationwrapped by this Axon Server specific registrationcloseCallback- aRunnableexecuted on aRegistration.close()andcancel()call
-
-
Method Details
-
cancel
public boolean cancel()Description copied from interface:RegistrationCancels this Registration. If the Registration was already cancelled, no action is taken.- Specified by:
cancelin interfaceRegistration- Returns:
trueif this handler is successfully deregistered,falseif this handler was not currently registered.
-