Class TemporarilyDownConnectionManager
java.lang.Object
io.micronaut.rabbitmq.connect.recovery.TemporarilyDownConnectionManager
Creates temporarily down RabbitMQ connections and checks periodically if they are eventually up.
- Since:
- 4.1.0
- Author:
- Guillermo Calvo
-
Constructor Summary
-
Method Summary
Modifier and TypeMethodDescriptionnewConnection
(RabbitConnectionFactoryConfig factory, ExecutorService executor) Creates a new temporarily down RabbitMQ connection.
-
Constructor Details
-
TemporarilyDownConnectionManager
public TemporarilyDownConnectionManager()
-
-
Method Details
-
newConnection
public TemporarilyDownConnection newConnection(RabbitConnectionFactoryConfig factory, ExecutorService executor) Creates a new temporarily down RabbitMQ connection.- Parameters:
factory
- The factory to create the connection.executor
- The executor service.- Returns:
- a new
TemporarilyDownConnection
-