Interface FailureListener
-
- All Known Subinterfaces:
SessionFailureListener
- All Known Implementing Classes:
ActiveMQTarget,ActiveMQXAResourceWrapper,BridgeImpl,ClientSessionImpl,ClusterConnectionBridge,FederatedQueueConsumerImpl,FederationDownstream,ServerSessionImpl,ServerSessionImpl.TempQueueCleanerUpper,SharedNothingBackupQuorum
public interface FailureListenerA FailureListener notifies the user when a connection failure occurred.
-
-
Method Summary
All Methods Instance Methods Abstract Methods Modifier and Type Method Description voidconnectionFailed(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 Detail
-
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 failfailedOver-
-
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 failfailedOver-scaleDownTargetNodeID- the ID of the node to which messages are scaling down
-
-