T - Type of errors to checkpublic interface ErrorPolicy<T>
StatusCode.| Modifier and Type | Method and Description |
|---|---|
default boolean |
isRetryable(Exception ex)
Returns true if the given exception should be retried
Usually exceptions are never retried, but some policies can implement more difficult logic
|
boolean |
isRetryable(T value)
Returns true if the given value should be retried
|
boolean isRetryable(T value)
value - value to checkdefault boolean isRetryable(Exception ex)
ex - exception to checkCopyright © 2024. All rights reserved.