Class ExponentialDelayRetryStrategy.ExponentialDelayRetryStrategyBuilder
java.lang.Object
com.amilesend.client.connection.retry.ExponentialDelayRetryStrategy.ExponentialDelayRetryStrategyBuilder
- Enclosing class:
ExponentialDelayRetryStrategy
public static class ExponentialDelayRetryStrategy.ExponentialDelayRetryStrategyBuilder
extends Object
-
Method Summary
Modifier and TypeMethodDescriptionbaseDelayMs(long baseDelayMs) The base delay in milliseconds to apply per retry.build()maxAttempts(int maxAttempts) The maximum number of attempts to make.maxJitterMs(long maxJitterMs) The maximum amount of jitter in milliseconds to apply per retry.maxTotalDelayMs(long maxTotalDelayMs) The maximum total delay across all retries.toString()
-
Method Details
-
maxAttempts
public ExponentialDelayRetryStrategy.ExponentialDelayRetryStrategyBuilder maxAttempts(int maxAttempts) The maximum number of attempts to make. Default: 3- Returns:
this.
-
maxJitterMs
public ExponentialDelayRetryStrategy.ExponentialDelayRetryStrategyBuilder maxJitterMs(long maxJitterMs) The maximum amount of jitter in milliseconds to apply per retry. Default: 100- Returns:
this.
-
baseDelayMs
public ExponentialDelayRetryStrategy.ExponentialDelayRetryStrategyBuilder baseDelayMs(long baseDelayMs) The base delay in milliseconds to apply per retry. Default: 1000- Returns:
this.
-
maxTotalDelayMs
public ExponentialDelayRetryStrategy.ExponentialDelayRetryStrategyBuilder maxTotalDelayMs(long maxTotalDelayMs) The maximum total delay across all retries. Default: 5000- Returns:
this.
-
build
-
toString
-