Interface Recoverable

All Known Subinterfaces:
RecoverableChannel, RecoverableConnection
All Known Implementing Classes:
AutorecoveringChannel, AutorecoveringConnection

public interface Recoverable
Provides a way to register (network, AMQP 0-9-1) connection recovery callbacks. When connection recovery is enabled via ConnectionFactory, ConnectionFactory.newConnection() and Connection.createChannel() return Recoverable connections and channels.
See Also:
  • Method Details

    • addRecoveryListener

      void addRecoveryListener(RecoveryListener listener)
      Registers a connection recovery callback.
      Parameters:
      listener - Callback function
    • removeRecoveryListener

      void removeRecoveryListener(RecoveryListener listener)