Package com.rabbitmq.client
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 Summary
Modifier and TypeMethodDescriptionvoid
addRecoveryListener
(RecoveryListener listener) Registers a connection recovery callback.void
removeRecoveryListener
(RecoveryListener listener)
-
Method Details
-
addRecoveryListener
Registers a connection recovery callback.- Parameters:
listener
- Callback function
-
removeRecoveryListener
-