public interface ExceptionHandler
| Modifier and Type | Method and Description |
|---|---|
boolean |
handleException(Exception ex,
int ntries)
Determine how to proceed after an exception was thrown.
|
boolean handleException(Exception ex, int ntries) throws InterruptedException
Thread.sleep() before returning.ex - is describing a problemntries - is number of consecutive failure for same operationtrue for immediate retry, false to abortInterruptedException - if backoff throws it