public interface RetryPolicy
| Modifier and Type | Method and Description |
|---|---|
static RetryPolicy |
exponentialBackoff(long initialDelay,
long maxDelay) |
static RetryPolicy |
exponentialBackoff(long initialDelay,
long maxDelay,
double exponent) |
static RetryPolicy |
fixedDelay(long delay) |
static RetryPolicy |
immediateRetry() |
long |
nextRetryTimestamp(long now,
Throwable lastError,
int retryCount,
long firstRetryTimestamp) |
static RetryPolicy |
noRetry() |
default RetryPolicy |
withMaxTotalRetryCount(int maxRetryCount) |
default RetryPolicy |
withMaxTotalRetryTimeout(Duration maxRetryTimeout) |
long nextRetryTimestamp(long now,
Throwable lastError,
int retryCount,
long firstRetryTimestamp)
static RetryPolicy noRetry()
static RetryPolicy immediateRetry()
static RetryPolicy fixedDelay(long delay)
static RetryPolicy exponentialBackoff(long initialDelay, long maxDelay, double exponent)
static RetryPolicy exponentialBackoff(long initialDelay, long maxDelay)
default RetryPolicy withMaxTotalRetryCount(int maxRetryCount)
default RetryPolicy withMaxTotalRetryTimeout(Duration maxRetryTimeout)
Copyright © 2019. All rights reserved.