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 TypeMethodDescriptionvoidconnectionFailed(ActiveMQException exception, boolean failedOver) Notifies that a connection has failed due to the specified exception.voidconnectionFailed(ActiveMQException exception, boolean failedOver, String scaleDownTargetNodeID) Notifies that a connection has failed due to the specified exception.
-
Method Details
-
connectionFailed
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 failscaleDownTargetNodeID- the ID of the node to which messages are scaling down
-