Class 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
    • Nested Class Summary

      • Nested classes/interfaces inherited from class org.redisson.RedissonLock

        org.redisson.RedissonLock.ExpirationEntry
    • Field Summary

      • Fields inherited from class org.redisson.RedissonLock

        internalLockLeaseTime, pubSub
      • Fields inherited from class org.redisson.RedissonObject

        codec
    • 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
      • Methods inherited from interface org.redisson.api.RLock

        getName, remainTimeToLive
      • Methods inherited from interface org.redisson.api.RLockAsync

        remainTimeToLiveAsync
      • Methods inherited from interface org.redisson.api.RObject

        addListener, copy, delete, dump, getCodec, getName, isExists, migrate, move, removeListener, rename, renamenx, restore, restore, restoreAndReplace, restoreAndReplace, sizeInMemory, touch, unlink
      • Methods inherited from interface org.redisson.api.RObjectAsync

        addListenerAsync, copyAsync, dumpAsync, migrateAsync, moveAsync, removeListenerAsync, renameAsync, renamenxAsync, restoreAndReplaceAsync, restoreAndReplaceAsync, restoreAsync, restoreAsync, sizeInMemoryAsync, touchAsync, unlinkAsync
    • Constructor Detail

      • RedissonLockWithCustomOwnerAndFixedLeaseTime

        public RedissonLockWithCustomOwnerAndFixedLeaseTime​(org.redisson.command.CommandAsyncExecutor commandExecutor,
                                                            long leaseTime,
                                                            java.lang.String name,
                                                            java.lang.String owner)
    • Method Detail

      • getLockName

        protected java.lang.String getLockName​(long threadId)
        Overrides:
        getLockName in class org.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 interface org.redisson.api.RLockAsync
        Overrides:
        tryLockAsync in class org.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 interface org.redisson.api.RExpirable
      • expireAsync

        public org.redisson.api.RFuture<java.lang.Boolean> expireAsync​(long arg0,
                                                                       java.util.concurrent.TimeUnit arg1)
        Specified by:
        expireAsync in interface org.redisson.api.RExpirableAsync
      • expireAt

        public boolean expireAt​(long arg0)
        Specified by:
        expireAt in interface org.redisson.api.RExpirable
      • expireAtAsync

        public org.redisson.api.RFuture<java.lang.Boolean> expireAtAsync​(long arg0)
        Specified by:
        expireAtAsync in interface org.redisson.api.RExpirableAsync
      • expireAt

        public boolean expireAt​(java.util.Date arg0)
        Specified by:
        expireAt in interface org.redisson.api.RExpirable
      • expireAtAsync

        public org.redisson.api.RFuture<java.lang.Boolean> expireAtAsync​(java.util.Date arg0)
        Specified by:
        expireAtAsync in interface org.redisson.api.RExpirableAsync
      • clearExpire

        public boolean clearExpire()
        Specified by:
        clearExpire in interface org.redisson.api.RExpirable
      • clearExpireAsync

        public org.redisson.api.RFuture<java.lang.Boolean> clearExpireAsync()
        Specified by:
        clearExpireAsync in interface org.redisson.api.RExpirableAsync
      • remainTimeToLive

        public long remainTimeToLive()
        Specified by:
        remainTimeToLive in interface org.redisson.api.RExpirable
      • remainTimeToLiveAsync

        public org.redisson.api.RFuture<java.lang.Long> remainTimeToLiveAsync()
        Specified by:
        remainTimeToLiveAsync in interface org.redisson.api.RExpirableAsync