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