Package org.redisson.api
Class LockOptions
java.lang.Object
org.redisson.api.LockOptions
Configuration for Lock object.
- Author:
- Danila Varatyntsev
-
Nested Class Summary
Modifier and TypeClassDescriptionstatic interface
Factory for LockOptions.BackOffPolicy class.static interface
Generator of sleep period values for RedissonSpinLock back offstatic class
Back off algorithm, where sleep period is constant and is defined by LockOptions.ConstantBackOff.delay.static class
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
-
Method Summary
Modifier and TypeMethodDescriptionstatic LockOptions.BackOff
defaults()
Creates a new instance of ExponentialBackOffOptions with default options.
-
Constructor Details
-
LockOptions
public LockOptions()
-
-
Method Details
-
defaults
Creates a new instance of ExponentialBackOffOptions with default options.- Returns:
- BackOffOptions instance
-