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 close() and cancel() call |
| Modifier and Type | Method and Description |
|---|---|
boolean |
cancel()
Cancels this Registration.
|
void |
close()
Cancels this Registration.
|
public AxonServerRegistration(Registration wrappedRegistration, Runnable closeCallback)
AxonServerRegistration, which wraps the given wrappedRegistration and runs the
provided closeCallback on a close() and cancel() callwrappedRegistration - the Registration wrapped by this Axon Server specific registrationcloseCallback - a Runnable executed on a close() and cancel() callpublic void close()
RegistrationRegistration.cancel().
close in interface AutoCloseableclose in interface Registrationpublic boolean cancel()
Registrationcancel in interface Registrationtrue if this handler is successfully unregistered, false if this handler
was not currently registered.Copyright © 2010–2019. All rights reserved.