Uses of Class
net.jodah.lyra.config.RecoveryPolicy
Package | Description |
---|---|
net.jodah.lyra.config |
-
Uses of RecoveryPolicy in net.jodah.lyra.config
Methods in net.jodah.lyra.config that return RecoveryPolicy Modifier and Type Method Description RecoveryPolicy
ChannelConfig. getChannelRecoveryPolicy()
Returns the channel's recovery policy.RecoveryPolicy
Config. getChannelRecoveryPolicy()
RecoveryPolicy
Config. getConnectionRecoveryPolicy()
RecoveryPolicy
ConnectionConfig. getConnectionRecoveryPolicy()
Returns the connection's recovery policy.static RecoveryPolicy
RecoveryPolicies. recoverAlways()
Returns a RecoveryPolicy that always recovers.static RecoveryPolicy
RecoveryPolicies. recoverNever()
Returns a RecoveryPolicy that never recovers.RecoveryPolicy
RecoveryPolicy. 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.RecoveryPolicy
RecoveryPolicy. withBackoff(Duration interval, Duration maxInterval, int intervalMultiplier)
Sets theinterval
to pause for between attempts, exponentially backing of to themaxInterval
multiplying successive intervals by theintervalMultiplier
.RecoveryPolicy
RecoveryPolicy. withInterval(Duration interval)
Sets theinterval
to pause for between attempts.RecoveryPolicy
RecoveryPolicy. withMaxAttempts(int maxAttempts)
Sets the max number of attempts to perform.RecoveryPolicy
RecoveryPolicy. withMaxDuration(Duration maxDuration)
Sets the max duration to perform attempts for.Methods in net.jodah.lyra.config with parameters of type RecoveryPolicy Modifier and Type Method Description ChannelConfig
ChannelConfig. withChannelRecoveryPolicy(RecoveryPolicy recoveryPolicy)
Sets therecoveryPolicy
to use for recovering the channel.Config
Config. withChannelRecoveryPolicy(RecoveryPolicy channelRecoveryPolicy)
Config
Config. withConnectionRecoveryPolicy(RecoveryPolicy connectionRecoveryPolicy)
ConnectionConfig
ConnectionConfig. withConnectionRecoveryPolicy(RecoveryPolicy recoveryPolicy)
Sets the policy to use for the recovery of Connections after an unexpected Connection closure.Config
Config. withRecoveryPolicy(RecoveryPolicy recoveryPolicy)
Sets the policy to use for the recovery of Connections/Channels/Consumers after an unexpected Connection/Channel closure.