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) |
boolean |
RetryRule.test(RetryContext retryContext)
Tests if this rule can be applied to the context.
|
boolean |
RetryPredicate.test(RetryContext retryContext) |
Modifier and Type | Method and Description |
---|---|
static RetryRule |
RetryRule.of(Predicate<RetryContext> matches,
Function<RetryContext,RetryStrategy> function) |
static RetryRule |
RetryRule.of(Predicate<RetryContext> matches,
Function<RetryContext,RetryStrategy> function) |
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. |