Class RedissonLockWithCustomOwnerAndFixedLeaseTime
- java.lang.Object
-
- org.redisson.RedissonObject
-
- org.redisson.RedissonLock
-
- com.nikolastojiljkovic.akka.coordination.lease.RedissonLockWithCustomOwnerAndFixedLeaseTime
-
- All Implemented Interfaces:
java.util.concurrent.locks.Lock
,org.redisson.api.RExpirable
,org.redisson.api.RExpirableAsync
,org.redisson.api.RLock
,org.redisson.api.RLockAsync
,org.redisson.api.RObject
,org.redisson.api.RObjectAsync
public class RedissonLockWithCustomOwnerAndFixedLeaseTime extends org.redisson.RedissonLock
-
-
Constructor Summary
Constructors Constructor Description RedissonLockWithCustomOwnerAndFixedLeaseTime(org.redisson.command.CommandAsyncExecutor commandExecutor, long leaseTime, java.lang.String name, java.lang.String owner)
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description boolean
clearExpire()
org.redisson.api.RFuture<java.lang.Boolean>
clearExpireAsync()
boolean
expire(long arg0, java.util.concurrent.TimeUnit arg1)
org.redisson.api.RFuture<java.lang.Boolean>
expireAsync(long arg0, java.util.concurrent.TimeUnit arg1)
boolean
expireAt(long arg0)
boolean
expireAt(java.util.Date arg0)
org.redisson.api.RFuture<java.lang.Boolean>
expireAtAsync(long arg0)
org.redisson.api.RFuture<java.lang.Boolean>
expireAtAsync(java.util.Date arg0)
protected java.lang.String
getLockName(long threadId)
long
remainTimeToLive()
org.redisson.api.RFuture<java.lang.Long>
remainTimeToLiveAsync()
org.redisson.api.RFuture<java.lang.Boolean>
renewAsync()
org.redisson.api.RFuture<java.lang.Boolean>
tryLockAsync(long waitTime, long leaseTime, java.util.concurrent.TimeUnit unit, long currentThreadId)
-
Methods inherited from class org.redisson.RedissonLock
acquireFailedAsync, deleteAsync, forceUnlock, forceUnlockAsync, getEntry, getEntryName, getHoldCount, getHoldCountAsync, isExistsAsync, isHeldByCurrentThread, isHeldByThread, isLocked, isLockedAsync, lock, lock, lockAsync, lockAsync, lockAsync, lockAsync, lockInterruptibly, lockInterruptibly, newCondition, renewExpirationAsync, subscribe, tryLock, tryLock, tryLock, tryLockAsync, tryLockAsync, tryLockAsync, tryLockAsync, unlock, unlockAsync, unlockAsync, unlockInnerAsync, unsubscribe
-
Methods inherited from class org.redisson.RedissonObject
addListener, addListenerAsync, await, copy, copyAsync, delete, dump, dumpAsync, encode, encode, encode, encodeMapKey, encodeMapKeys, encodeMapValue, encodeMapValues, get, getCodec, getLockByMapKey, getLockByValue, getName, getName, isExists, migrate, migrateAsync, move, moveAsync, prefixName, removeListener, removeListenerAsync, rename, renameAsync, renamenx, renamenxAsync, restore, restore, restoreAndReplace, restoreAndReplace, restoreAndReplaceAsync, restoreAndReplaceAsync, restoreAsync, restoreAsync, sizeInMemory, sizeInMemoryAsync, sizeInMemoryAsync, suffixName, toSeconds, toStream, touch, touchAsync, unlink, unlinkAsync
-
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
-
-
-
-
Method Detail
-
getLockName
protected java.lang.String getLockName(long threadId)
- Overrides:
getLockName
in classorg.redisson.RedissonLock
-
tryLockAsync
public org.redisson.api.RFuture<java.lang.Boolean> tryLockAsync(long waitTime, long leaseTime, java.util.concurrent.TimeUnit unit, long currentThreadId)
- Specified by:
tryLockAsync
in interfaceorg.redisson.api.RLockAsync
- Overrides:
tryLockAsync
in classorg.redisson.RedissonLock
-
renewAsync
public org.redisson.api.RFuture<java.lang.Boolean> renewAsync()
-
expire
public boolean expire(long arg0, java.util.concurrent.TimeUnit arg1)
- Specified by:
expire
in interfaceorg.redisson.api.RExpirable
-
expireAsync
public org.redisson.api.RFuture<java.lang.Boolean> expireAsync(long arg0, java.util.concurrent.TimeUnit arg1)
- Specified by:
expireAsync
in interfaceorg.redisson.api.RExpirableAsync
-
expireAt
public boolean expireAt(long arg0)
- Specified by:
expireAt
in interfaceorg.redisson.api.RExpirable
-
expireAtAsync
public org.redisson.api.RFuture<java.lang.Boolean> expireAtAsync(long arg0)
- Specified by:
expireAtAsync
in interfaceorg.redisson.api.RExpirableAsync
-
expireAt
public boolean expireAt(java.util.Date arg0)
- Specified by:
expireAt
in interfaceorg.redisson.api.RExpirable
-
expireAtAsync
public org.redisson.api.RFuture<java.lang.Boolean> expireAtAsync(java.util.Date arg0)
- Specified by:
expireAtAsync
in interfaceorg.redisson.api.RExpirableAsync
-
clearExpire
public boolean clearExpire()
- Specified by:
clearExpire
in interfaceorg.redisson.api.RExpirable
-
clearExpireAsync
public org.redisson.api.RFuture<java.lang.Boolean> clearExpireAsync()
- Specified by:
clearExpireAsync
in interfaceorg.redisson.api.RExpirableAsync
-
remainTimeToLive
public long remainTimeToLive()
- Specified by:
remainTimeToLive
in interfaceorg.redisson.api.RExpirable
-
remainTimeToLiveAsync
public org.redisson.api.RFuture<java.lang.Long> remainTimeToLiveAsync()
- Specified by:
remainTimeToLiveAsync
in interfaceorg.redisson.api.RExpirableAsync
-
-