Interface FailureListener

All Known Subinterfaces:
SessionFailureListener
All Known Implementing Classes:
ActiveMQTarget, ActiveMQXAResourceWrapper, BridgeImpl, ClientSessionImpl, ClusterConnectionBridge, FederatedQueueConsumerImpl, FederationDownstream, ServerSessionImpl, ServerSessionImpl.TempQueueCleanerUpper, SharedNothingBackupQuorum, WildFlyRecoveryDiscovery

public interface FailureListener
A FailureListener notifies the user when a connection failure occurred.
  • Method Summary

    Modifier and Type
    Method
    Description
    void
    connectionFailed(ActiveMQException exception, boolean failedOver)
    Notifies that a connection has failed due to the specified exception.
    void
    connectionFailed(ActiveMQException exception, boolean failedOver, String scaleDownTargetNodeID)
    Notifies that a connection has failed due to the specified exception.
  • Method Details

    • connectionFailed

      void connectionFailed(ActiveMQException exception, boolean failedOver)
      Notifies that a connection has failed due to the specified exception.
      Parameters:
      exception - exception which has caused the connection to fail
    • connectionFailed

      void connectionFailed(ActiveMQException exception, boolean failedOver, String scaleDownTargetNodeID)
      Notifies that a connection has failed due to the specified exception.
      Parameters:
      exception - exception which has caused the connection to fail
      scaleDownTargetNodeID - the ID of the node to which messages are scaling down