Class AMQPBridgeSenderManager.AMQPBridgeSenderRecoveryHandler

java.lang.Object
org.apache.activemq.artemis.protocol.amqp.connect.bridge.AMQPBridgeSenderManager.AMQPBridgeSenderRecoveryHandler
All Implemented Interfaces:
Closeable, AutoCloseable
Enclosing class:
AMQPBridgeSenderManager

public static class AMQPBridgeSenderManager.AMQPBridgeSenderRecoveryHandler extends Object implements Closeable
  • Constructor Details

  • Method Details

    • close

      public void close()
      Specified by:
      close in interface AutoCloseable
      Specified by:
      close in interface Closeable
    • tryScheduleNextRecovery

      public boolean tryScheduleNextRecovery(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. 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.