com.google.appengine.tools.cloudstorage
Class RetryHelper<V>
- java.lang.Object
-
- com.google.appengine.tools.cloudstorage.RetryHelper<V>
-
- Type Parameters:
V
- return value of the closure that is being run with retries
public class RetryHelper<V> extends Object
Utility class for retrying operations. For more details about the parameters, seeRetryParams
If the request is never successful, aRetriesExhaustedException
will be thrown. For internal use only. User code cannot safely depend on this class.- Author:
- ohler@google.com (Christian Ohler)
-
-
Method Summary
All Methods Static Methods Instance Methods Concrete Methods 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()
-
-
-
Method Detail
-
runWithRetries
public static <V> V runWithRetries(Callable<V> callable) throws RetryHelperException
- Throws:
RetryHelperException
-
runWithRetries
public static <V> V runWithRetries(Callable<V> callable, RetryParams params, ExceptionHandler exceptionHandler) throws RetryHelperException
- Throws:
RetryHelperException
-
-
Copyright © 2016 Google. All rights reserved.