Package | Description |
---|---|
io.sphere.sdk.retry |
Modifier and Type | Method and Description |
---|---|
static RetryPredicate |
RetryPredicate.ofAlwaysTrue()
Creates a predicate that yields always true.
|
static RetryPredicate |
RetryPredicate.ofMatchingErrors(Class<? extends Throwable> errorClass)
Creates a predicate which will be true if the latest error is a subclass of
errorClass . |
static RetryPredicate |
RetryPredicate.ofMatchingStatusCodes(int first,
int... more)
Creates a predicate which matches specific status codes for
SphereServiceException s. |
static RetryPredicate |
RetryPredicate.ofMatchingStatusCodes(Predicate<Integer> predicate)
Creates a predicate which matches another predicate for status codes for
SphereServiceException s. |