Package | Description |
---|---|
net.jodah.lyra | |
net.jodah.lyra.config | |
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.getInterval()
Returns the interval between attempts.
|
Duration |
RecoveryPolicy.getInterval()
Returns the interval between attempts.
|
Duration |
RetryPolicy.getMaxDuration()
Returns the max duration to perform attempts for.
|
Duration |
RecoveryPolicy.getMaxDuration()
Returns the max duration to perform attempts for.
|
Duration |
RetryPolicy.getMaxInterval()
Returns the max interval between backoff attempts.
|
Duration |
RecoveryPolicy.getMaxInterval()
Returns the max interval between backoff attempts.
|
Modifier and Type | Method and Description |
---|---|
RetryPolicy |
RetryPolicy.withBackoff(Duration interval,
Duration maxInterval)
Sets the
interval to pause for between attempts, exponentially backing of to the
maxInterval multiplying successive intervals by a factor of 2. |
RecoveryPolicy |
RecoveryPolicy.withBackoff(Duration interval,
Duration maxInterval)
Sets the
interval to pause for between attempts, exponentially backing of to the
maxInterval multiplying successive intervals by a factor of 2. |
RetryPolicy |
RetryPolicy.withBackoff(Duration interval,
Duration maxInterval,
int intervalMultiplier)
Sets the
interval to pause for between attempts, exponentially backing of to the
maxInterval multiplying successive intervals by the intervalMultiplier . |
RecoveryPolicy |
RecoveryPolicy.withBackoff(Duration interval,
Duration maxInterval,
int intervalMultiplier)
Sets the
interval to pause for between attempts, exponentially backing of to the
maxInterval multiplying successive intervals by the intervalMultiplier . |
RetryPolicy |
RetryPolicy.withInterval(Duration interval)
Sets the
interval to pause for between attempts. |
RecoveryPolicy |
RecoveryPolicy.withInterval(Duration interval)
Sets the
interval to pause for between attempts. |
RetryPolicy |
RetryPolicy.withMaxDuration(Duration maxDuration)
Sets the max duration to perform attempts for.
|
RecoveryPolicy |
RecoveryPolicy.withMaxDuration(Duration maxDuration)
Sets the max duration to perform attempts for.
|
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 unit s. |
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 © 2016. All rights reserved.