Package org.redisson
Class RedissonRedLock
java.lang.Object
org.redisson.RedissonMultiLock
org.redisson.RedissonRedLock
- All Implemented Interfaces:
Lock,RLock,RLockAsync
Deprecated.
RedLock locking algorithm implementation for multiple locks.
It manages all locks as one.
- Author:
- Nikita Koksharov
- See Also:
-
Constructor Summary
ConstructorsConstructorDescriptionRedissonRedLock(RLock... locks) Deprecated.Creates instance with multipleRLockobjects. -
Method Summary
Modifier and TypeMethodDescriptionprotected longcalcLockWaitTime(long remainTime) Deprecated.protected intDeprecated.protected intminLocksAmount(List<RLock> locks) Deprecated.voidunlock()Deprecated.Methods inherited from class org.redisson.RedissonMultiLock
forceUnlock, forceUnlockAsync, getHoldCount, getHoldCountAsync, getName, isHeldByCurrentThread, isHeldByThread, isHeldByThreadAsync, isLocked, isLockedAsync, lock, lock, lockAsync, lockAsync, lockAsync, lockAsync, lockInterruptibly, lockInterruptibly, newCondition, remainTimeToLive, remainTimeToLiveAsync, tryLock, tryLock, tryLock, tryLockAsync, tryLockAsync, tryLockAsync, tryLockAsync, tryLockAsync, tryLockAsyncCycle, unlockAsync, unlockAsync, unlockInner, unlockInnerAsync
-
Constructor Details
-
RedissonRedLock
Deprecated.Creates instance with multipleRLockobjects. Each RLock object could be created by own Redisson instance.- Parameters:
locks- - array of locks
-
-
Method Details
-
failedLocksLimit
protected int failedLocksLimit()Deprecated.- Overrides:
failedLocksLimitin classRedissonMultiLock
-
minLocksAmount
Deprecated. -
calcLockWaitTime
protected long calcLockWaitTime(long remainTime) Deprecated.- Overrides:
calcLockWaitTimein classRedissonMultiLock
-
unlock
public void unlock()Deprecated.- Specified by:
unlockin interfaceLock- Overrides:
unlockin classRedissonMultiLock
-