Class RetryContext
java.lang.Object
com.rabbitmq.client.impl.recovery.RetryContext
The context of a topology recovery retry operation.
- Since:
- 5.4.0
-
Constructor Summary
ConstructorDescriptionRetryContext
(RecordedEntity entity, Exception exception, AutorecoveringConnection connection) -
Method Summary
Modifier and TypeMethodDescriptionbinding()
The to-be-recovered entity as a binding.The underlying connection.consumer()
The to-be-recovered entity as a consumer.entity()
The to-be-recovered entity.The exception that triggered the retry attempt.exchange()
The to-be-recovered entity as an exchange.queue()
The to-be-recovered entity as a queue.
-
Constructor Details
-
RetryContext
public RetryContext(RecordedEntity entity, Exception exception, AutorecoveringConnection connection)
-
-
Method Details
-
connection
The underlying connection.- Returns:
-
exception
The exception that triggered the retry attempt.- Returns:
-
entity
The to-be-recovered entity.- Returns:
-
queue
The to-be-recovered entity as a queue.- Returns:
-
exchange
The to-be-recovered entity as an exchange.- Returns:
-
binding
The to-be-recovered entity as a binding.- Returns:
-
consumer
The to-be-recovered entity as a consumer.- Returns:
-