ExponentialBackoffWithJitter 类

定义

Represents a retry policy that performs exponential backoff with jitter retries.

public class ExponentialBackoffWithJitter implements RetryPolicy
继承
java.lang.Object
ExponentialBackoffWithJitter

构造函数

ExponentialBackoffWithJitter()

Constructor with default backoff values and firstFastRetry

ExponentialBackoffWithJitter(int retryCount, long minBackoff, long maxBackoff, long deltaBackoff, boolean firstFastRetry)

Constructor.

方法

getRetryDecision(int currentRetryCount, TransportException lastException)

Determines whether the operation should be retried and the interval until the next retry.

适用于