@BetaApi public class RetryHelper extends Object
RetrySettings
. In case if retrying is unsuccessful, RetryHelper.RetryHelperException
will be thrown.Modifier and Type | Class and Description |
---|---|
static class |
RetryHelper.RetryHelperException |
Constructor and Description |
---|
RetryHelper() |
Modifier and Type | Method and Description |
---|---|
static <V> V |
poll(Callable<V> callable,
RetrySettings pollSettings,
ResultRetryAlgorithm<V> resultPollAlgorithm,
ApiClock clock) |
static <V> V |
runWithRetries(Callable<V> callable,
RetrySettings retrySettings,
ResultRetryAlgorithm<?> resultRetryAlgorithm,
ApiClock clock) |
public static <V> V runWithRetries(Callable<V> callable, RetrySettings retrySettings, ResultRetryAlgorithm<?> resultRetryAlgorithm, ApiClock clock) throws RetryHelper.RetryHelperException
RetryHelper.RetryHelperException
public static <V> V poll(Callable<V> callable, RetrySettings pollSettings, ResultRetryAlgorithm<V> resultPollAlgorithm, ApiClock clock) throws ExecutionException, InterruptedException
Copyright © 2019 Google LLC. All rights reserved.