Class AMQPBridgeReceiverManager.AMQPBridgeReceiverRecoveryHandler
java.lang.Object
org.apache.activemq.artemis.protocol.amqp.connect.bridge.AMQPBridgeReceiverManager.AMQPBridgeReceiverRecoveryHandler
- All Implemented Interfaces:
Closeable, AutoCloseable
- Enclosing class:
AMQPBridgeReceiverManager<E>
-
Constructor Summary
ConstructorsConstructorDescriptionAMQPBridgeReceiverRecoveryHandler(AMQPBridgeReceiverManager<?> 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
-
AMQPBridgeReceiverRecoveryHandler
public AMQPBridgeReceiverRecoveryHandler(AMQPBridgeReceiverManager<?> 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.
-