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 RecordedBinding
binding()
The to-be-recovered entity as a binding.AutorecoveringConnection
connection()
The underlying connection.RecordedConsumer
consumer()
The to-be-recovered entity as a consumer.RecordedEntity
entity()
The to-be-recovered entity.Exception
exception()
The exception that triggered the retry attempt.RecordedExchange
exchange()
The to-be-recovered entity as an exchange.RecordedQueue
queue()
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:
-
-