Uses of Class
com.github.ddth.dlock.LockResult
-
Packages that use LockResult Package Description com.github.ddth.dlock com.github.ddth.dlock.impl com.github.ddth.dlock.impl.inmem com.github.ddth.dlock.impl.redis -
-
Uses of LockResult in com.github.ddth.dlock
Methods in com.github.ddth.dlock that return LockResult Modifier and Type Method Description LockResultIDLock. lock(int waitWeight, String clientId)Acquire the lock forclientIdwith default duration.LockResultIDLock. lock(int waitWeight, String clientId, long lockDurationMs)Acquire the lock forclientIdfor a duration oflockDurationMs.LockResultIDLock. lock(String clientId)Acquire the lock forclientIdwith default duration.LockResultIDLock. lock(String clientId, long lockDurationMs)Acquire the lock forclientIdfor a duration oflockDurationMs.LockResultIDLock. unlock(String clientId)Release the lock.static LockResultLockResult. valueOf(String name)Returns the enum constant of this type with the specified name.static LockResult[]LockResult. values()Returns an array containing the constants of this enum type, in the order they are declared. -
Uses of LockResult in com.github.ddth.dlock.impl
Methods in com.github.ddth.dlock.impl that return LockResult Modifier and Type Method Description LockResultAbstractDLock. lock(int waitWeight, String clientId)Acquire the lock forclientIdwith default duration.LockResultAbstractDLock. lock(String clientId)Acquire the lock forclientIdwith default duration.LockResultAbstractDLock. lock(String clientId, long lockDurationMs)Acquire the lock forclientIdfor a duration oflockDurationMs. -
Uses of LockResult in com.github.ddth.dlock.impl.inmem
Methods in com.github.ddth.dlock.impl.inmem that return LockResult Modifier and Type Method Description LockResultInmemDLock. lock(int waitWeight, String clientId, long lockDurationMs)Acquire the lock forclientIdfor a duration oflockDurationMs.LockResultInmemDLock. unlock(String clientId)Release the lock. -
Uses of LockResult in com.github.ddth.dlock.impl.redis
Methods in com.github.ddth.dlock.impl.redis that return LockResult Modifier and Type Method Description LockResultClusteredRedisDLock. lock(int waitWeight, String clientId, long lockDurationMs)Acquire the lock forclientIdfor a duration oflockDurationMs.LockResultRedisDLock. lock(int waitWeight, String clientId, long lockDurationMs)Acquire the lock forclientIdfor a duration oflockDurationMs.LockResultClusteredRedisDLock. unlock(String clientId)Release the lock.LockResultRedisDLock. unlock(String clientId)Release the lock.protected LockResultBaseRedisDLock. unlockResult(Object response)Convenient method to build result forIDLock.unlock(String)} method with result from Redis server.
-