Package | Description |
---|---|
net.jodah.lyra.config |
Modifier and Type | Method and Description |
---|---|
RetryPolicy |
Config.getChannelRetryPolicy() |
RetryPolicy |
ChannelConfig.getChannelRetryPolicy()
Returns the channel's retry policy.
|
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. |
static RetryPolicy |
RetryPolicies.retryAlways()
Returns a RetryPolicy that always retries.
|
static RetryPolicy |
RetryPolicies.retryNever()
Returns a RetryPolicy that never retries.
|
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 . |
RetryPolicy |
RetryPolicy.withInterval(Duration interval)
Sets the
interval to pause for between attempts. |
RetryPolicy |
RetryPolicy.withMaxAttempts(int maxAttempts)
Sets the max number of attempts to perform.
|
RetryPolicy |
RetryPolicy.withMaxDuration(Duration maxDuration)
Sets the max duration to perform attempts for.
|
Modifier and Type | Method and Description |
---|---|
Config |
Config.withChannelRetryPolicy(RetryPolicy channelRetryPolicy) |
ChannelConfig |
ChannelConfig.withChannelRetryPolicy(RetryPolicy retryPolicy)
Sets the
retryPolicy to use for retrying failed invocations on the channel. |
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.withRetryPolicy(RetryPolicy retryPolicy)
Sets the policy to use for handling
connection attempt , Connection invocation, and Channel invocation errors. |
Copyright © 2016. All rights reserved.