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 interfaceLockOptions.BackOffFactory for LockOptions.BackOffPolicy class.static interfaceLockOptions.BackOffPolicyGenerator of sleep period values for RedissonSpinLock back offstatic classLockOptions.ConstantBackOffBack off algorithm, where sleep period is constant and is defined by LockOptions.ConstantBackOff.delay.static classLockOptions.ExponentialBackOffBack 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.BackOffdefaults()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
-
-