Class TopologyRecoveryRetryHandlerBuilder
- java.lang.Object
-
- com.rabbitmq.client.impl.recovery.TopologyRecoveryRetryHandlerBuilder
-
public class TopologyRecoveryRetryHandlerBuilder extends Object
Builder to ease creation ofDefaultRetryHandler
instances.Just override what you need. By default, retry conditions don't trigger retry, retry operations are no-op, the number of retry attempts is 1, and the backoff policy doesn't wait at all.
- Since:
- 4.8.0
- See Also:
DefaultRetryHandler
,TopologyRecoveryRetryLogic
-
-
Constructor Summary
Constructors Constructor Description TopologyRecoveryRetryHandlerBuilder()
-
Method Summary
-
-
-
Method Detail
-
builder
public static TopologyRecoveryRetryHandlerBuilder builder()
-
queueRecoveryRetryCondition
public TopologyRecoveryRetryHandlerBuilder queueRecoveryRetryCondition(DefaultRetryHandler.RetryCondition<? super RecordedQueue> queueRecoveryRetryCondition)
-
exchangeRecoveryRetryCondition
public TopologyRecoveryRetryHandlerBuilder exchangeRecoveryRetryCondition(DefaultRetryHandler.RetryCondition<? super RecordedExchange> exchangeRecoveryRetryCondition)
-
bindingRecoveryRetryCondition
public TopologyRecoveryRetryHandlerBuilder bindingRecoveryRetryCondition(DefaultRetryHandler.RetryCondition<? super RecordedBinding> bindingRecoveryRetryCondition)
-
consumerRecoveryRetryCondition
public TopologyRecoveryRetryHandlerBuilder consumerRecoveryRetryCondition(DefaultRetryHandler.RetryCondition<? super RecordedConsumer> consumerRecoveryRetryCondition)
-
queueRecoveryRetryOperation
public TopologyRecoveryRetryHandlerBuilder queueRecoveryRetryOperation(DefaultRetryHandler.RetryOperation<?> queueRecoveryRetryOperation)
-
exchangeRecoveryRetryOperation
public TopologyRecoveryRetryHandlerBuilder exchangeRecoveryRetryOperation(DefaultRetryHandler.RetryOperation<?> exchangeRecoveryRetryOperation)
-
bindingRecoveryRetryOperation
public TopologyRecoveryRetryHandlerBuilder bindingRecoveryRetryOperation(DefaultRetryHandler.RetryOperation<?> bindingRecoveryRetryOperation)
-
consumerRecoveryRetryOperation
public TopologyRecoveryRetryHandlerBuilder consumerRecoveryRetryOperation(DefaultRetryHandler.RetryOperation<?> consumerRecoveryRetryOperation)
-
backoffPolicy
public TopologyRecoveryRetryHandlerBuilder backoffPolicy(BackoffPolicy backoffPolicy)
-
retryAttempts
public TopologyRecoveryRetryHandlerBuilder retryAttempts(int retryAttempts)
-
build
public RetryHandler build()
-
-