@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,
com.google.api.core.ApiClock clock) |
static <V> V |
runWithRetries(Callable<V> callable,
RetrySettings retrySettings,
ResultRetryAlgorithm<?> resultRetryAlgorithm,
com.google.api.core.ApiClock clock) |
public static <V> V runWithRetries(Callable<V> callable, RetrySettings retrySettings, ResultRetryAlgorithm<?> resultRetryAlgorithm, com.google.api.core.ApiClock clock) throws RetryHelper.RetryHelperException
RetryHelper.RetryHelperException
public static <V> V poll(Callable<V> callable, RetrySettings pollSettings, ResultRetryAlgorithm<V> resultPollAlgorithm, com.google.api.core.ApiClock clock) throws ExecutionException, InterruptedException
Copyright © 2019 Google LLC. All rights reserved.