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()
Registration
Registration.cancel()
.
close
in interface AutoCloseable
close
in interface Registration
public boolean cancel()
Registration
cancel
in interface Registration
true
if this handler is successfully unregistered, false
if this handler
was not currently registered.Copyright © 2010–2019. All rights reserved.