Class AxonServerRegistration

java.lang.Object
org.axonframework.axonserver.connector.command.AxonServerRegistration
All Implemented Interfaces:
AutoCloseable, org.axonframework.common.Registration

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

    • AxonServerRegistration

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

    • cancel

      public boolean cancel()
      Specified by:
      cancel in interface org.axonframework.common.Registration