Package org.redisson.api
Class LockOptions
- java.lang.Object
-
- org.redisson.api.LockOptions
-
public class LockOptions extends Object
Configuration for Lock object.- Author:
- Danila Varatyntsev
-
-
Nested Class Summary
Nested Classes Modifier and Type Class Description static interface
LockOptions.BackOff
Factory for LockOptions.BackOffPolicy class.static interface
LockOptions.BackOffPolicy
Generator of sleep period values for RedissonSpinLock back offstatic class
LockOptions.ConstantBackOff
Back off algorithm, where sleep period is constant and is defined by LockOptions.ConstantBackOff.delay.static class
LockOptions.ExponentialBackOff
Back off algorithm, where sleep period starts with LockOptions.ExponentialBackOff.initialDelay, each time increases LockOptions.ExponentialBackOff.multiplier times but doesn't exceed LockOptions.ExponentialBackOff.maxDelay
-
Constructor Summary
Constructors Constructor Description LockOptions()
-
Method Summary
All Methods Static Methods Concrete Methods Modifier and Type Method Description static LockOptions.BackOff
defaults()
Creates a new instance of ExponentialBackOffOptions with default options.
-
-
-
Method Detail
-
defaults
public static LockOptions.BackOff defaults()
Creates a new instance of ExponentialBackOffOptions with default options.- Returns:
- BackOffOptions instance
-
-