| Package | Description |
|---|---|
| net.jodah.lyra | |
| net.jodah.lyra.retry | |
| net.jodah.lyra.util |
| Modifier and Type | Method and Description |
|---|---|
ConnectionOptions |
ConnectionOptions.withConnectionTimeout(Duration connectionTimeout)
Set the connection timeout, zero for infinite, for an individual connection attempt.
|
ConnectionOptions |
ConnectionOptions.withRequestedHeartbeat(Duration requestedHeartbeat)
Set the requested heartbeat, zero for none.
|
| Modifier and Type | Method and Description |
|---|---|
Duration |
RetryPolicy.getMaxDuration()
Returns the max duration.
|
Duration |
RetryPolicy.getMaxRetryInterval()
Returns the max retry interval for backoff retries.
|
Duration |
RetryPolicy.getRetryInterval()
Returns the retry interval.
|
| Modifier and Type | Method and Description |
|---|---|
RetryPolicy |
RetryPolicy.withBackoff(Duration retryInterval,
Duration maxRetryInterval)
Sets the
retryInterval to pause for, exponentially backing of to the
maxRetryInterval multiplying successive intervals by a factor of 2. |
RetryPolicy |
RetryPolicy.withBackoff(Duration retryInterval,
Duration maxRetryInterval,
int retryIntervalMultiplier)
Sets the
retryInterval to pause for, exponentially backing of to the
maxRetryInterval multiplying successive intervals by the
retryIntervalMultiplier. |
RetryPolicy |
RetryPolicy.withMaxDuration(Duration maxDuration)
Sets the max duration of the RetryPolicy.
|
RetryPolicy |
RetryPolicy.withRetryInterval(Duration retryInterval)
Sets the
retryInterval to pause for between retries. |
| Modifier and Type | Field and Description |
|---|---|
static Duration |
Duration.INFINITE
A duration of Long.MAX_VALUE Days
|
| Modifier and Type | Method and Description |
|---|---|
static Duration |
Duration.days(long count)
Returns a Duration of
count days. |
static Duration |
Duration.hours(long count)
Returns a Duration of
count hours. |
static Duration |
Duration.inf()
Returns an infinite duration of Long.MAX_VALUE days.
|
static Duration |
Duration.infinite()
Returns an infinite duration of Long.MAX_VALUE days.
|
static Duration |
Duration.microseconds(long count)
Returns a Duration of
count microseconds. |
static Duration |
Duration.millis(long count)
Returns a Duration of
count milliseconds. |
static Duration |
Duration.milliseconds(long count)
Returns a Duration of
count milliseconds. |
static Duration |
Duration.mins(long count)
Returns a Duration of
count minutes. |
static Duration |
Duration.minutes(long count)
Returns a Duration of
count minutes. |
static Duration |
Duration.nanos(long count)
Returns a Duration of
count nanoseconds. |
static Duration |
Duration.nanoseconds(long count)
Returns a Duration of
count nanoseconds. |
static Duration |
Duration.of(long count,
TimeUnit unit)
Returns a Duration of
count units. |
static Duration |
Duration.of(String duration)
Returns a Duration from the parsed
duration. |
static Duration |
Duration.seconds(long count)
Returns a Duration of
count seconds. |
static Duration |
Duration.secs(long count)
Returns a Duration of
count seconds. |
Copyright © 2013. All rights reserved.