Uses of Class
net.jodah.lyra.config.RetryPolicy
Package | Description |
---|---|
net.jodah.lyra.config |
-
Uses of RetryPolicy in net.jodah.lyra.config
Methods in net.jodah.lyra.config that return RetryPolicy Modifier and Type Method Description RetryPolicy
ChannelConfig. getChannelRetryPolicy()
Returns the channel's retry policy.RetryPolicy
Config. getChannelRetryPolicy()
RetryPolicy
Config. getConnectionRetryPolicy()
RetryPolicy
ConnectionConfig. getConnectionRetryPolicy()
Returns the connection's retry policy.RetryPolicy
Config. getConnectRetryPolicy()
Sets the policy to use for handlingconnection 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 theinterval
to pause for between attempts, exponentially backing of to themaxInterval
multiplying successive intervals by a factor of 2.RetryPolicy
RetryPolicy. withBackoff(Duration interval, Duration maxInterval, int intervalMultiplier)
Sets theinterval
to pause for between attempts, exponentially backing of to themaxInterval
multiplying successive intervals by theintervalMultiplier
.RetryPolicy
RetryPolicy. withInterval(Duration interval)
Sets theinterval
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.Methods in net.jodah.lyra.config with parameters of type RetryPolicy Modifier and Type Method Description ChannelConfig
ChannelConfig. withChannelRetryPolicy(RetryPolicy retryPolicy)
Sets theretryPolicy
to use for retrying failed invocations on the channel.Config
Config. withChannelRetryPolicy(RetryPolicy channelRetryPolicy)
Config
Config. withConnectionRetryPolicy(RetryPolicy connectionRetryPolicy)
ConnectionConfig
ConnectionConfig. withConnectionRetryPolicy(RetryPolicy retryPolicy)
Sets the policy to use for handlingConnection
invocation errors.Config
Config. withConnectRetryPolicy(RetryPolicy connectRetryPolicy)
Sets the policy to use for handling initialconnection attempt
errors.Config
Config. withRetryPolicy(RetryPolicy retryPolicy)
Sets the policy to use for handlingconnection attempt
,Connection
invocation, andChannel
invocation errors.