Class AxonServerRegistration
java.lang.Object
org.axonframework.axonserver.connector.command.AxonServerRegistration
- All Implemented Interfaces:
AutoCloseable,org.axonframework.common.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(org.axonframework.common.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
public AxonServerRegistration(org.axonframework.common.Registration wrappedRegistration, Runnable closeCallback) Instantiate anAxonServerRegistration, which wraps the givenwrappedRegistrationand runs the providedcloseCallbackon aRegistration.close()andcancel()call
-
-
Method Details
-
cancel
public boolean cancel()- Specified by:
cancelin interfaceorg.axonframework.common.Registration
-