Class AxonServerRegistration
java.lang.Object
org.axonframework.axonserver.connector.AxonServerRegistration
- All Implemented Interfaces:
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 providedcloseCallbackoncancel()call -
Method Summary
-
Constructor Details
-
AxonServerRegistration
Instantiate anAxonServerRegistration, which wraps the givenwrappedRegistrationand runs the providedcloseCallbackoncancel()call- Parameters:
wrappedRegistration- theRegistrationwrapped by this Axon Server specific registrationcloseCallback- aRunnableexecuted on acancel()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.
-