Class RetryContext
- java.lang.Object
-
- com.rabbitmq.client.impl.recovery.RetryContext
-
public class RetryContext extends Object
The context of a topology recovery retry operation.- Since:
- 4.8.0
-
-
Constructor Summary
Constructors Constructor Description RetryContext(RecordedEntity entity, Exception exception, AutorecoveringConnection connection)
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description RecordedBindingbinding()The to-be-recovered entity as a binding.AutorecoveringConnectionconnection()The underlying connection.RecordedConsumerconsumer()The to-be-recovered entity as a consumer.RecordedEntityentity()The to-be-recovered entity.Exceptionexception()The exception that triggered the retry attempt.RecordedExchangeexchange()The to-be-recovered entity as an exchange.RecordedQueuequeue()The to-be-recovered entity as a queue.
-
-
-
Constructor Detail
-
RetryContext
public RetryContext(RecordedEntity entity, Exception exception, AutorecoveringConnection connection)
-
-
Method Detail
-
connection
public AutorecoveringConnection connection()
The underlying connection.- Returns:
-
exception
public Exception exception()
The exception that triggered the retry attempt.- Returns:
-
entity
public RecordedEntity entity()
The to-be-recovered entity.- Returns:
-
queue
public RecordedQueue queue()
The to-be-recovered entity as a queue.- Returns:
-
exchange
public RecordedExchange exchange()
The to-be-recovered entity as an exchange.- Returns:
-
binding
public RecordedBinding binding()
The to-be-recovered entity as a binding.- Returns:
-
consumer
public RecordedConsumer consumer()
The to-be-recovered entity as a consumer.- Returns:
-
-