Package | Description |
---|---|
io.sphere.sdk.client.retry | |
io.sphere.sdk.retry |
Modifier and Type | Method and Description |
---|---|
protected SphereClient |
RetryableSphereClientBuilder.decorateSphereClient(SphereClient underlyingClient,
RetryAction retryAction,
int maxParallelRequests) |
Modifier and Type | Method and Description |
---|---|
static RetryAction |
RetryAction.ofExponentialBackoff(long maxAttempts,
long initialRetryDelay,
long maxDelay)
Retry in the future with exponential backoff strategy.
|
static RetryAction |
RetryAction.ofGiveUpAndSendFirstException() |
static RetryAction |
RetryAction.ofGiveUpAndSendLatestException()
Throws the latest error and does not retry.
|
static RetryAction |
RetryAction.ofImmediateRetries(long maxAttempts)
Retries immediately for a maximum amount of attempts.
|
static RetryAction |
RetryAction.ofScheduledRetry(long maxAttempts,
Duration duration)
Retry in the future with a fixed waiting time.
|
static RetryAction |
RetryAction.ofScheduledRetry(long maxAttempts,
Function<RetryContext,Duration> durationFunction)
Retry in the future with a waiting time depending on the
RetryContext , for example to take the number of
attempts in consideration. |
static RetryAction |
RetryAction.ofShutdownServiceAndSendFirstException() |
static RetryAction |
RetryAction.ofShutdownServiceAndSendLatestException() |