Class AMQPBridgeSenderManager.AMQPBridgeSenderRecoveryHandler
java.lang.Object
org.apache.activemq.artemis.protocol.amqp.connect.bridge.AMQPBridgeSenderManager.AMQPBridgeSenderRecoveryHandler
- All Implemented Interfaces:
Closeable, AutoCloseable
- Enclosing class:
AMQPBridgeSenderManager
-
Constructor Summary
ConstructorsConstructorDescriptionAMQPBridgeSenderRecoveryHandler(AMQPBridgeSenderManager manager, AMQPBridgeLinkConfiguration configuration) -
Method Summary
Modifier and TypeMethodDescriptionvoidclose()booleantryScheduleNextRecovery(ScheduledExecutorService scheduler) When a link used by the bridge fails, this method is used to try and schedule a new connection attempt if the configuration rules allow one.
-
Constructor Details
-
AMQPBridgeSenderRecoveryHandler
public AMQPBridgeSenderRecoveryHandler(AMQPBridgeSenderManager manager, AMQPBridgeLinkConfiguration configuration)
-
-
Method Details
-
close
public void close()- Specified by:
closein interfaceAutoCloseable- Specified by:
closein interfaceCloseable
-
tryScheduleNextRecovery
When a link used by the bridge fails, this method is used to try and schedule a new connection attempt if the configuration rules allow one. If the configuration does not allow any (more) reconnection attempts this method returns false.- Parameters:
scheduler- The scheduler to use to schedule the next connection attempt.- Returns:
- true if an attempt was scheduled or false if no attempts are allowed.
-