Package org.redisson.api
Class LockOptions.ConstantBackOff
java.lang.Object
org.redisson.api.LockOptions.ConstantBackOff
- All Implemented Interfaces:
LockOptions.BackOff
- Enclosing class:
LockOptions
Back off algorithm, where sleep period is constant and is defined by delay.
To reduce possible negative effects of many threads simultaneously sending requests, a small random value is
added to all sleep periods.
-
Constructor Details
-
ConstantBackOff
public ConstantBackOff()
-
-
Method Details
-
create
- Specified by:
create
in interfaceLockOptions.BackOff
-
delay
Sets back off delay value.Default is
64
- Parameters:
delay
- - sleep period value. Has to be positive- Returns:
- ConstantBackOffOptions instance
-
getDelay
public long getDelay()
-