V
- return value of the closure that is being run with retriespublic class RetryHelper<V> extends Object
RetryParams
If the request is never successful, a RetriesExhaustedException
will be thrown.
For internal use only. User code cannot safely depend on this class.Modifier and Type | Method and Description |
---|---|
static <V> V |
runWithRetries(Callable<V> callable) |
static <V> V |
runWithRetries(Callable<V> callable,
RetryParams params,
ExceptionHandler exceptionHandler) |
String |
toString() |
public static <V> V runWithRetries(Callable<V> callable) throws RetryHelperException
RetryHelperException
public static <V> V runWithRetries(Callable<V> callable, RetryParams params, ExceptionHandler exceptionHandler) throws RetryHelperException
RetryHelperException
Copyright © 2014 Google. All Rights Reserved.