Class TopologyRecoveryRetryHandlerBuilder
java.lang.Object
com.rabbitmq.client.impl.recovery.TopologyRecoveryRetryHandlerBuilder
Builder to ease creation of
DefaultRetryHandler
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 2, and the backoff policy doesn't wait at all.
- Since:
- 5.4.0
- See Also:
-
Field Summary
Modifier and TypeFieldDescriptionprotected BackoffPolicy
protected BiPredicate
<? super RecordedBinding, Exception> protected DefaultRetryHandler.RetryOperation
<?> protected BiPredicate
<? super RecordedConsumer, Exception> protected DefaultRetryHandler.RetryOperation
<?> protected BiPredicate
<? super RecordedExchange, Exception> protected DefaultRetryHandler.RetryOperation
<?> protected BiPredicate
<? super RecordedQueue, Exception> protected DefaultRetryHandler.RetryOperation
<?> protected int
-
Constructor Summary
-
Method Summary
Modifier and TypeMethodDescriptionbackoffPolicy
(BackoffPolicy backoffPolicy) bindingRecoveryRetryCondition
(BiPredicate<? super RecordedBinding, Exception> bindingRecoveryRetryCondition) bindingRecoveryRetryOperation
(DefaultRetryHandler.RetryOperation<?> bindingRecoveryRetryOperation) build()
builder()
consumerRecoveryRetryCondition
(BiPredicate<? super RecordedConsumer, Exception> consumerRecoveryRetryCondition) consumerRecoveryRetryOperation
(DefaultRetryHandler.RetryOperation<?> consumerRecoveryRetryOperation) exchangeRecoveryRetryCondition
(BiPredicate<? super RecordedExchange, Exception> exchangeRecoveryRetryCondition) exchangeRecoveryRetryOperation
(DefaultRetryHandler.RetryOperation<?> exchangeRecoveryRetryOperation) queueRecoveryRetryCondition
(BiPredicate<? super RecordedQueue, Exception> queueRecoveryRetryCondition) queueRecoveryRetryOperation
(DefaultRetryHandler.RetryOperation<?> queueRecoveryRetryOperation) retryAttempts
(int retryAttempts)
-
Field Details
-
queueRecoveryRetryCondition
-
exchangeRecoveryRetryCondition
-
bindingRecoveryRetryCondition
-
consumerRecoveryRetryCondition
-
queueRecoveryRetryOperation
-
exchangeRecoveryRetryOperation
-
bindingRecoveryRetryOperation
-
consumerRecoveryRetryOperation
-
retryAttempts
protected int retryAttempts -
backoffPolicy
-
-
Constructor Details
-
TopologyRecoveryRetryHandlerBuilder
public TopologyRecoveryRetryHandlerBuilder()
-
-
Method Details
-
builder
-
queueRecoveryRetryCondition
public TopologyRecoveryRetryHandlerBuilder queueRecoveryRetryCondition(BiPredicate<? super RecordedQueue, Exception> queueRecoveryRetryCondition) -
exchangeRecoveryRetryCondition
public TopologyRecoveryRetryHandlerBuilder exchangeRecoveryRetryCondition(BiPredicate<? super RecordedExchange, Exception> exchangeRecoveryRetryCondition) -
bindingRecoveryRetryCondition
public TopologyRecoveryRetryHandlerBuilder bindingRecoveryRetryCondition(BiPredicate<? super RecordedBinding, Exception> bindingRecoveryRetryCondition) -
consumerRecoveryRetryCondition
public TopologyRecoveryRetryHandlerBuilder consumerRecoveryRetryCondition(BiPredicate<? super RecordedConsumer, Exception> 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
-
retryAttempts
-
build
-