Package | Description |
---|---|
io.sphere.sdk.retry |
Modifier and Type | Method and Description |
---|---|
RetryStrategy |
RetryRule.apply(RetryContext retryContext)
Applies the retry rule.
|
RetryStrategy |
RetryAction.apply(RetryContext retryContext) |
static RetryStrategy |
RetryStrategy.resume(Throwable error)
The error case should be dealt with giving up and throwing an exception.
|
static RetryStrategy |
RetryStrategy.retryImmediately(Object parameter)
The error case should be dealt with by retrying immediately with the given parameter.
|
static RetryStrategy |
RetryStrategy.retryScheduled(Object parameter,
Duration duration)
The error case should be dealt with by retrying later with the given parameter.
|
static RetryStrategy |
RetryStrategy.stop(Throwable error)
The error case should cause the service to stop and throw an exception.
|
Modifier and Type | Method and Description |
---|---|
static RetryRule |
RetryRule.of(Predicate<RetryContext> matches,
Function<RetryContext,RetryStrategy> function) |