public class AxonServerRegistration extends Object implements Registration
Registration. Notifies messaging server when registration is cancelled
or closed, and delegates the close/cancel to the normal registration.| Constructor and Description |
|---|
AxonServerRegistration(Registration wrappedRegistration,
Runnable closeCallback)
Instantiate an
AxonServerRegistration, which wraps the given wrappedRegistration and runs the
provided closeCallback on a Registration.close() and cancel() call |
| Modifier and Type | Method and Description |
|---|---|
boolean |
cancel()
Cancels this Registration.
|
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, waitclosepublic AxonServerRegistration(Registration wrappedRegistration, Runnable closeCallback)
AxonServerRegistration, which wraps the given wrappedRegistration and runs the
provided closeCallback on a Registration.close() and cancel() callwrappedRegistration - the Registration wrapped by this Axon Server specific registrationcloseCallback - a Runnable executed on a Registration.close() and cancel() callpublic boolean cancel()
Registrationcancel in interface Registrationtrue if this handler is successfully deregistered, false if this handler
was not currently registered.Copyright © 2010–2023. All rights reserved.