Interface SessionFailureListener

All Superinterfaces:
FailureListener
All Known Implementing Classes:
ActiveMQXAResourceWrapper, BridgeImpl, ClusterConnectionBridge, FederatedQueueConsumerImpl, FederationDownstream, SharedNothingBackupQuorum, WildFlyRecoveryDiscovery

public interface SessionFailureListener extends FailureListener
A SessionFailureListener notifies the client when a failure occurred on the session.
  • Method Details

    • beforeReconnect

      void beforeReconnect(ActiveMQException exception)
      Notifies that a connection has failed due to the specified exception.

      This method is called before the session attempts to reconnect/failover.

      Parameters:
      exception - exception which has caused the connection to fail