-
-
Methods in net.jodah.lyra.config with parameters of type Duration
Modifier and Type |
Method |
Description |
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.
|
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.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.withInterval(Duration interval) |
Sets the interval to pause for between attempts.
|
RetryPolicy |
RetryPolicy.withInterval(Duration interval) |
Sets the interval to pause for between attempts.
|
RecoveryPolicy |
RecoveryPolicy.withMaxDuration(Duration maxDuration) |
Sets the max duration to perform attempts for.
|
RetryPolicy |
RetryPolicy.withMaxDuration(Duration maxDuration) |
Sets the max duration to perform attempts for.
|
-
Methods in net.jodah.lyra.util that return Duration
Modifier and Type |
Method |
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,
java.util.concurrent.TimeUnit unit) |
Returns a Duration of count unit s.
|
static Duration |
Duration.of(java.lang.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.
|