public class RedissonRedLock extends RedissonMultiLock
Constructor and Description |
---|
RedissonRedLock(RLock... locks)
Creates instance with multiple
RLock objects. |
Modifier and Type | Method and Description |
---|---|
protected int |
failedLocksLimit() |
protected boolean |
isAllLocksAcquired(AtomicReference<RLock> lockedLockHolder,
AtomicReference<Throwable> failed,
Queue<RLock> lockedLocks) |
protected boolean |
isLockFailed(io.netty.util.concurrent.Future<Boolean> future) |
protected int |
minLocksAmount(List<RLock> locks) |
void |
unlock() |
lock, lock, lockInterruptibly, lockInterruptibly, newCondition, tryLock, tryLock, tryLock, unlockInner
protected int failedLocksLimit()
failedLocksLimit
in class RedissonMultiLock
public void unlock()
unlock
in interface Lock
unlock
in class RedissonMultiLock
protected boolean isLockFailed(io.netty.util.concurrent.Future<Boolean> future)
isLockFailed
in class RedissonMultiLock
protected boolean isAllLocksAcquired(AtomicReference<RLock> lockedLockHolder, AtomicReference<Throwable> failed, Queue<RLock> lockedLocks)
isAllLocksAcquired
in class RedissonMultiLock
Copyright © 2014–2017 The Redisson Project. All rights reserved.