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 viaConnectionFactory
,ConnectionFactory.newConnection()
andConnection.createChannel()
returnRecoverable
connections and channels.- See Also:
AutorecoveringConnection
,AutorecoveringChannel
-
-
Method Summary
All Methods Instance Methods Abstract Methods Modifier and Type Method Description void
addRecoveryListener(RecoveryListener listener)
Registers a connection recovery callback.void
removeRecoveryListener(RecoveryListener listener)
-
-
-
Method Detail
-
addRecoveryListener
void addRecoveryListener(RecoveryListener listener)
Registers a connection recovery callback.- Parameters:
listener
- Callback function
-
removeRecoveryListener
void removeRecoveryListener(RecoveryListener listener)
-
-