|
|||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
java.lang.Objectcom.google.enterprise.adaptor.ExceptionHandlers
public class ExceptionHandlers
Utility class for ExceptionHandler
s.
Method Summary | |
---|---|
static ExceptionHandler |
defaultHandler()
The default exception handler. |
static ExceptionHandler |
exponentialBackoffHandler(int maximumTries,
long initialSleepDuration,
TimeUnit initialSleepUnit)
Create a handler that uses exponential backoff to sleep before retrying. |
static ExceptionHandler |
noRetryHandler()
Create a handler that always returns false , causing no retries. |
Methods inherited from class java.lang.Object |
---|
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
Method Detail |
---|
public static ExceptionHandler defaultHandler()
exponentialBackoffHandler(12, 5, TimeUnit.SECONDS)
, but it is free to
change in the future.
public static ExceptionHandler exponentialBackoffHandler(int maximumTries, long initialSleepDuration, TimeUnit initialSleepUnit)
public static ExceptionHandler noRetryHandler()
false
, causing no retries.
|
|||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |