public class RetryHelper
extends java.lang.Object
Modifier and Type | Class and Description |
---|---|
static interface |
RetryHelper.Action<T> |
static class |
RetryHelper.Options
Options for retrying a single operation.
|
Modifier and Type | Method and Description |
---|---|
static RetryHelper.Options |
defaults() |
<T> T |
execute(RetryHelper.Action<T> action) |
<T> T |
execute(RetryHelper.Action<T> action,
RetryHelper.Options opts) |
java.time.Duration |
getDefaultTimeout() |
static RetryHelper.Options.Builder |
options() |
public static RetryHelper.Options.Builder options()
public static RetryHelper.Options defaults()
public java.time.Duration getDefaultTimeout()
public <T> T execute(RetryHelper.Action<T> action) throws RestApiException, UpdateException
RestApiException
UpdateException
public <T> T execute(RetryHelper.Action<T> action, RetryHelper.Options opts) throws RestApiException, UpdateException
RestApiException
UpdateException