@FunctionalInterface public interface Retryable
| Modifier and Type | Method and Description |
|---|---|
boolean |
retry(Optional<Exception> exception,
Optional<Integer> statusCode)
Decide if a attempt should be retried
|
static Retryable |
standard() |
boolean retry(Optional<Exception> exception, Optional<Integer> statusCode)
exception - If an exception occurred, this parameter is filledstatusCode - Otheriwse, the statusCode is providedstatic Retryable standard()
Copyright © 2012–2018 Taimos GmbH. All rights reserved.