public class RetryConfig
extends java.lang.Object
THIS CLASS IS EXPERIMENTAL AND THE API IS SUBJECT TO CHANGE
| Modifier and Type | Class and Description |
|---|---|
static class |
RetryConfig.Builder
The builder class for the RetryConfig
|
| Modifier and Type | Field and Description |
|---|---|
static int |
DEFAULT_ATTEMPTS |
static long[] |
DEFAULT_BACKOFF_POLICY |
static RetryConfig |
DEFAULT_CONFIG
The default retry configuration.
|
| Modifier and Type | Method and Description |
|---|---|
static RetryConfig.Builder |
builder()
Creates a builder for the config.
|
int |
getAttempts()
The configured number of attempts
|
long[] |
getBackoffPolicy()
The configured backoff policy
|
long |
getDeadline()
The configured deadline
|
public static final int DEFAULT_ATTEMPTS
public static final long[] DEFAULT_BACKOFF_POLICY
public static final RetryConfig DEFAULT_CONFIG
public long[] getBackoffPolicy()
public int getAttempts()
public long getDeadline()
public static RetryConfig.Builder builder()