| Package | Description |
|---|---|
| org.redisson | |
| org.redisson.api |
| Modifier and Type | Field and Description |
|---|---|
protected LockOptions.BackOff |
RedissonSpinLock.backOff |
| Modifier and Type | Method and Description |
|---|---|
RLock |
Redisson.getSpinLock(String name,
LockOptions.BackOff backOff) |
RLockReactive |
RedissonReactive.getSpinLock(String name,
LockOptions.BackOff backOff) |
RLockRx |
RedissonRx.getSpinLock(String name,
LockOptions.BackOff backOff) |
| Constructor and Description |
|---|
RedissonSpinLock(CommandAsyncExecutor commandExecutor,
String name,
LockOptions.BackOff backOff) |
| Modifier and Type | Class and Description |
|---|---|
static 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
|
| Modifier and Type | Method and Description |
|---|---|
static LockOptions.BackOff |
LockOptions.defaults()
Creates a new instance of ExponentialBackOffOptions with default options.
|
| Modifier and Type | Method and Description |
|---|---|
RLock |
RedissonClient.getSpinLock(String name,
LockOptions.BackOff backOff)
Returns Spin lock instance by name with specified back off options.
|
RLockReactive |
RedissonReactiveClient.getSpinLock(String name,
LockOptions.BackOff backOff)
Returns Spin lock instance by name with specified back off options.
|
RLockRx |
RedissonRxClient.getSpinLock(String name,
LockOptions.BackOff backOff)
Returns Spin lock instance by name with specified back off options.
|
Copyright © 2014–2021 Redisson. All rights reserved.