| Package | Description |
|---|---|
| net.jodah.lyra.config | |
| net.jodah.lyra.retry |
| Modifier and Type | Method and Description |
|---|---|
RetryPolicy |
Config.getChannelRecoveryPolicy() |
RetryPolicy |
ChannelConfig.getChannelRecoveryPolicy()
Returns the channel's recovery policy.
|
RetryPolicy |
Config.getChannelRetryPolicy() |
RetryPolicy |
ChannelConfig.getChannelRetryPolicy()
Returns the channel's retry policy.
|
RetryPolicy |
ConnectionConfig.getConnectionRecoveryPolicy()
Returns the connection's recovery policy.
|
RetryPolicy |
Config.getConnectionRecoveryPolicy() |
RetryPolicy |
ConnectionConfig.getConnectionRetryPolicy()
Returns the connection's retry policy.
|
RetryPolicy |
Config.getConnectionRetryPolicy() |
RetryPolicy |
Config.getConnectRetryPolicy()
Sets the policy to use for handling
connection attempt errors. |
| Modifier and Type | Method and Description |
|---|---|
Config |
Config.withChannelRecoveryPolicy(RetryPolicy channelRecoveryPolicy) |
ChannelConfig |
ChannelConfig.withChannelRecoveryPolicy(RetryPolicy recoveryPolicy)
Sets the
recoveryPolicy to use for recovering the channel. |
Config |
Config.withChannelRetryPolicy(RetryPolicy channelRetryPolicy) |
ChannelConfig |
ChannelConfig.withChannelRetryPolicy(RetryPolicy retryPolicy)
Sets the
retryPolicy to use for retrying failed invocations on the channel. |
ConnectionConfig |
ConnectionConfig.withConnectionRecoveryPolicy(RetryPolicy recoveryPolicy)
Sets the policy to use for the recovery of Connections after an unexpected Connection closure.
|
Config |
Config.withConnectionRecoveryPolicy(RetryPolicy connectionRecoveryPolicy) |
ConnectionConfig |
ConnectionConfig.withConnectionRetryPolicy(RetryPolicy retryPolicy)
Sets the policy to use for handling
Connection invocation errors. |
Config |
Config.withConnectionRetryPolicy(RetryPolicy connectionRetryPolicy) |
Config |
Config.withConnectRetryPolicy(RetryPolicy connectRetryPolicy)
Sets the policy to use for handling initial
connection attempt errors. |
Config |
Config.withRecoveryPolicy(RetryPolicy recoveryPolicy)
Sets the policy to use for the recovery of Connections/Channels/Consumers after an unexpected
Connection/Channel closure.
|
Config |
Config.withRetryPolicy(RetryPolicy retryPolicy)
Sets the policy to use for handling
connection attempt, Connection invocation, and Channel invocation errors. |
| Modifier and Type | Method and Description |
|---|---|
static RetryPolicy |
RetryPolicies.retryAlways()
Returns a RetryPolicy that always retries.
|
static RetryPolicy |
RetryPolicies.retryNever()
Returns a RetryPolicy that never retries.
|
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.withMaxRetries(int maxRetries)
Sets the max retries to perform.
|
RetryPolicy |
RetryPolicy.withRetryInterval(Duration retryInterval)
Sets the
retryInterval to pause for between retries. |
Copyright © 2013. All rights reserved.