public class ReconnectOptions extends Object
Modifier and Type | Class and Description |
---|---|
static class |
ReconnectOptions.Builder |
Modifier | Constructor and Description |
---|---|
protected |
ReconnectOptions(ReconnectOptions.Builder builder) |
Modifier and Type | Method and Description |
---|---|
static ReconnectOptions.Builder |
builder() |
static ReconnectOptions |
create() |
Backoff |
getBackoff()
Retrieve the backoff function used for retrying.
|
Scheduler |
getBackoffScheduler()
Returns a scheduler provided every reconnect attempt, as backoff delay.
|
Duration |
getFirstBackoff() |
Jitter |
getJitter()
Retrieve the jitter to be applied on each backoff delay.
|
Duration |
getMaxBackoffInterval() |
int |
getMaxRetries()
Returns the number of retries.
|
protected ReconnectOptions(ReconnectOptions.Builder builder)
public static ReconnectOptions create()
public static ReconnectOptions.Builder builder()
public Duration getFirstBackoff()
public Duration getMaxBackoffInterval()
public int getMaxRetries()
public Backoff getBackoff()
public Jitter getJitter()
public Scheduler getBackoffScheduler()