Class WildFlyRecoveryDiscovery
java.lang.Object
org.jboss.activemq.artemis.wildfly.integration.recovery.WildFlyRecoveryDiscovery
- All Implemented Interfaces:
SessionFailureListener,FailureListener
This class will have a simple Connection Factory and will listen for topology updates.
This Discovery is instantiated by WildFlyActiveMQRecoveryRegistry
- Author:
- clebertsuconic
-
Constructor Summary
Constructors -
Method Summary
Modifier and TypeMethodDescriptionvoidbeforeReconnect(ActiveMQException exception) Notifies that a connection has failed due to the specified exception.voidconnectionFailed(ActiveMQException exception, boolean failedOver) Notifies that a connection has failed due to the specified exception.voidconnectionFailed(ActiveMQException me, boolean failedOver, String scaleDownTargetNodeID) Notifies that a connection has failed due to the specified exception.intbooleanprotected voidfinalize()inthashCode()intwe may have several connection factories referencing the same connection recovery entry.protected voidvoidstart(boolean retry) voidstop()toString()
-
Constructor Details
-
WildFlyRecoveryDiscovery
-
-
Method Details
-
start
public void start(boolean retry) -
stop
public void stop() -
incrementUsage
public int incrementUsage()we may have several connection factories referencing the same connection recovery entry. Because of that we need to make a count of the number of the instances that are referencing it, so we will remove it as soon as we are done -
decrementUsage
public int decrementUsage() -
finalize
protected void finalize() -
internalStop
protected void internalStop() -
connectionFailed
Description copied from interface:FailureListenerNotifies that a connection has failed due to the specified exception.- Specified by:
connectionFailedin interfaceFailureListener- Parameters:
exception- exception which has caused the connection to fail
-
connectionFailed
public void connectionFailed(ActiveMQException me, boolean failedOver, String scaleDownTargetNodeID) Description copied from interface:FailureListenerNotifies that a connection has failed due to the specified exception.- Specified by:
connectionFailedin interfaceFailureListener- Parameters:
me- exception which has caused the connection to failscaleDownTargetNodeID- the ID of the node to which messages are scaling down
-
beforeReconnect
Description copied from interface:SessionFailureListenerNotifies that a connection has failed due to the specified exception.This method is called before the session attempts to reconnect/failover.
- Specified by:
beforeReconnectin interfaceSessionFailureListener- Parameters:
exception- exception which has caused the connection to fail
-
toString
-
hashCode
public int hashCode() -
equals
-