| Package | Description |
|---|---|
| com.github.ddth.dlock | |
| com.github.ddth.dlock.impl | |
| com.github.ddth.dlock.impl.inmem | |
| com.github.ddth.dlock.impl.redis |
| Modifier and Type | Method and Description |
|---|---|
LockResult |
IDLock.lock(String clientId)
Acquire the lock for
clientId with default duration. |
LockResult |
IDLock.lock(String clientId,
long lockDurationMs)
Acquire the lock for
clientId for a duration of
lockDurationMs. |
LockResult |
IDLock.unlock(String clientId)
Release the lock.
|
static LockResult |
LockResult.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.
|
| Modifier and Type | Method and Description |
|---|---|
LockResult |
AbstractDLock.lock(String clientId)
Acquire the lock for
clientId with default duration. |
| Modifier and Type | Method and Description |
|---|---|
LockResult |
InmemDLock.lock(String clientId,
long lockDurationMs)
Acquire the lock for
clientId for a duration of
lockDurationMs. |
LockResult |
InmemDLock.unlock(String clientId)
Release the lock.
|
| Modifier and Type | Method and Description |
|---|---|
LockResult |
RedisDLock.lock(String clientId,
long lockDurationMs)
Acquire the lock for
clientId for a duration of
lockDurationMs. |
LockResult |
ClusteredRedisDLock.lock(String clientId,
long lockDurationMs)
Acquire the lock for
clientId for a duration of
lockDurationMs. |
LockResult |
RedisDLock.unlock(String clientId)
Release the lock.
|
LockResult |
ClusteredRedisDLock.unlock(String clientId)
Release the lock.
|
Copyright © 2018 DDTH. All rights reserved.