public class TopologyRecoveryRetryHandlerBuilder extends Object
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.
DefaultRetryHandler
,
TopologyRecoveryRetryLogic
Modifier and Type | Field and Description |
---|---|
protected BackoffPolicy |
backoffPolicy |
protected BiPredicate<? super RecordedBinding,Exception> |
bindingRecoveryRetryCondition |
protected DefaultRetryHandler.RetryOperation<?> |
bindingRecoveryRetryOperation |
protected BiPredicate<? super RecordedConsumer,Exception> |
consumerRecoveryRetryCondition |
protected DefaultRetryHandler.RetryOperation<?> |
consumerRecoveryRetryOperation |
protected BiPredicate<? super RecordedExchange,Exception> |
exchangeRecoveryRetryCondition |
protected DefaultRetryHandler.RetryOperation<?> |
exchangeRecoveryRetryOperation |
protected BiPredicate<? super RecordedQueue,Exception> |
queueRecoveryRetryCondition |
protected DefaultRetryHandler.RetryOperation<?> |
queueRecoveryRetryOperation |
protected int |
retryAttempts |
Constructor and Description |
---|
TopologyRecoveryRetryHandlerBuilder() |
protected BiPredicate<? super RecordedQueue,Exception> queueRecoveryRetryCondition
protected BiPredicate<? super RecordedExchange,Exception> exchangeRecoveryRetryCondition
protected BiPredicate<? super RecordedBinding,Exception> bindingRecoveryRetryCondition
protected BiPredicate<? super RecordedConsumer,Exception> consumerRecoveryRetryCondition
protected DefaultRetryHandler.RetryOperation<?> queueRecoveryRetryOperation
protected DefaultRetryHandler.RetryOperation<?> exchangeRecoveryRetryOperation
protected DefaultRetryHandler.RetryOperation<?> bindingRecoveryRetryOperation
protected DefaultRetryHandler.RetryOperation<?> consumerRecoveryRetryOperation
protected int retryAttempts
protected BackoffPolicy backoffPolicy
public static TopologyRecoveryRetryHandlerBuilder builder()
public TopologyRecoveryRetryHandlerBuilder queueRecoveryRetryCondition(BiPredicate<? super RecordedQueue,Exception> queueRecoveryRetryCondition)
public TopologyRecoveryRetryHandlerBuilder exchangeRecoveryRetryCondition(BiPredicate<? super RecordedExchange,Exception> exchangeRecoveryRetryCondition)
public TopologyRecoveryRetryHandlerBuilder bindingRecoveryRetryCondition(BiPredicate<? super RecordedBinding,Exception> bindingRecoveryRetryCondition)
public TopologyRecoveryRetryHandlerBuilder consumerRecoveryRetryCondition(BiPredicate<? super RecordedConsumer,Exception> consumerRecoveryRetryCondition)
public TopologyRecoveryRetryHandlerBuilder queueRecoveryRetryOperation(DefaultRetryHandler.RetryOperation<?> queueRecoveryRetryOperation)
public TopologyRecoveryRetryHandlerBuilder exchangeRecoveryRetryOperation(DefaultRetryHandler.RetryOperation<?> exchangeRecoveryRetryOperation)
public TopologyRecoveryRetryHandlerBuilder bindingRecoveryRetryOperation(DefaultRetryHandler.RetryOperation<?> bindingRecoveryRetryOperation)
public TopologyRecoveryRetryHandlerBuilder consumerRecoveryRetryOperation(DefaultRetryHandler.RetryOperation<?> consumerRecoveryRetryOperation)
public TopologyRecoveryRetryHandlerBuilder backoffPolicy(BackoffPolicy backoffPolicy)
public TopologyRecoveryRetryHandlerBuilder retryAttempts(int retryAttempts)
public RetryHandler build()
Copyright © 2022 VMware, Inc. or its affiliates.. All rights reserved.