Class AxonServerRegistration

java.lang.Object
org.axonframework.axonserver.connector.AxonServerRegistration
All Implemented Interfaces:
Registration

public class AxonServerRegistration extends Object implements 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 Details

    • AxonServerRegistration

      public AxonServerRegistration(Registration wrappedRegistration, Runnable closeCallback)
      Instantiate an AxonServerRegistration, which wraps the given wrappedRegistration and runs the provided closeCallback on cancel() call
      Parameters:
      wrappedRegistration - the Registration wrapped by this Axon Server specific registration
      closeCallback - a Runnable executed on a cancel() call
  • Method Details

    • cancel

      public boolean cancel()
      Description copied from interface: Registration
      Cancels this Registration. If the Registration was already cancelled, no action is taken.
      Specified by:
      cancel in interface Registration
      Returns:
      true if this handler is successfully deregistered, false if this handler was not currently registered.