public interface
ExceptionHandler
Known Indirect Subclasses |
Interface for handling errors and defining a retry policy.
Public Method Summary
abstract boolean |
handleException(Exception ex, int ntries)
Determines how to proceed after an exception is thrown.
|
Public Methods
public abstract boolean handleException (Exception ex, int ntries)
Determines how to proceed after an exception is thrown.
The connector code passes the exception along with the number of attempts to the method.
Implementations might call Thread.sleep()
to delay or back off before
returning.
Parameters
ex | the exception that occurred |
---|---|
ntries | the number of consecutive failures for the current operation |
Returns
true
for an immediate retry orfalse
to abort
Throws
InterruptedException | if an interruption occurs during the back off |
---|