Class RedissonRedLockWithCustomMinLocks
- java.lang.Object
-
- org.redisson.RedissonMultiLock
-
- org.redisson.RedissonRedLock
-
- com.nikolastojiljkovic.akka.coordination.lease.RedissonRedLockWithCustomMinLocks
-
- All Implemented Interfaces:
java.util.concurrent.locks.Lock
,org.redisson.api.RLock
,org.redisson.api.RLockAsync
public class RedissonRedLockWithCustomMinLocks extends org.redisson.RedissonRedLock
-
-
Constructor Summary
Constructors Constructor Description RedissonRedLockWithCustomMinLocks(int fixedMinLocksAmount, scala.collection.immutable.Seq<org.redisson.api.RLock> rLocks)
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description protected int
failedLocksLimit()
int
fixedMinLocksAmount()
protected int
minLocksAmount(java.util.List<org.redisson.api.RLock> locks)
scala.collection.immutable.Seq<org.redisson.api.RLock>
rLocks()
-
Methods inherited from class org.redisson.RedissonMultiLock
forceUnlock, forceUnlockAsync, getHoldCount, getHoldCountAsync, getName, isHeldByCurrentThread, isHeldByThread, isLocked, isLockedAsync, lock, lock, lockAsync, lockAsync, lockAsync, lockAsync, lockInterruptibly, lockInterruptibly, newCondition, remainTimeToLive, remainTimeToLiveAsync, tryLock, tryLock, tryLock, tryLockAsync, tryLockAsync, tryLockAsync, tryLockAsync, tryLockAsync, tryLockAsync, unlockAsync, unlockAsync, unlockInner, unlockInnerAsync
-
-
-
-
Method Detail
-
failedLocksLimit
protected int failedLocksLimit()
- Overrides:
failedLocksLimit
in classorg.redisson.RedissonRedLock
-
fixedMinLocksAmount
public int fixedMinLocksAmount()
-
minLocksAmount
protected int minLocksAmount(java.util.List<org.redisson.api.RLock> locks)
- Overrides:
minLocksAmount
in classorg.redisson.RedissonRedLock
-
rLocks
public scala.collection.immutable.Seq<org.redisson.api.RLock> rLocks()
-
-