public class RecoveryDiscovery extends Object implements SessionFailureListener
This class will have a simple Connection Factory and will listen for topology updates.
This Discovery is instantiated by HornetQRecoveryRegistry
Constructor and Description |
---|
RecoveryDiscovery(XARecoveryConfig config) |
Modifier and Type | Method and Description |
---|---|
void |
beforeReconnect(HornetQException exception)
Notifies that a connection has failed due to the specified exception.
|
void |
connectionFailed(HornetQException exception,
boolean failedOver)
Notifies that a connection has failed due to the specified exception.
|
int |
decrementUsage() |
boolean |
equals(Object o) |
protected void |
finalize() |
int |
hashCode() |
int |
incrementUsage()
we may have several connection factories referencing the same connection recovery entry.
|
protected void |
internalStop() |
void |
start(boolean retry) |
void |
stop() |
String |
toString() |
public RecoveryDiscovery(XARecoveryConfig config)
public void start(boolean retry)
public void stop()
public int incrementUsage()
public int decrementUsage()
protected void internalStop()
public void connectionFailed(HornetQException exception, boolean failedOver)
FailureListener
connectionFailed
in interface FailureListener
exception
- exception which has caused the connection to failpublic void beforeReconnect(HornetQException exception)
SessionFailureListener
beforeReconnect
in interface SessionFailureListener
exception
- exception which has caused the connection to failCopyright © 2018 JBoss by Red Hat. All rights reserved.