| Package | Description |
|---|---|
| com.github.ddth.dlock.impl | |
| com.github.ddth.dlock.impl.inmem | |
| com.github.ddth.dlock.impl.redis |
| Modifier and Type | Method and Description |
|---|---|
protected AbstractDLock |
AbstractDLockFactory.createAndInitLockInstance(String name,
Properties lockProps)
Create and initializes an
IDLock instance, ready for use. |
AbstractDLock |
AbstractDLockFactory.createLock(String name)
Create a new lock.
|
protected abstract AbstractDLock |
AbstractDLockFactory.createLockInternal(String name,
Properties lockProps)
Create a new lock instance, but does not initialize it.
|
AbstractDLock |
AbstractDLock.init() |
protected AbstractDLock |
AbstractDLock.setClientId(String clientId)
Get client-id who is currently holding the lock.
|
AbstractDLock |
AbstractDLock.setLockProperties(Properties lockProps)
Lock's custom properties.
|
AbstractDLock |
AbstractDLock.setName(String name) |
protected AbstractDLock |
AbstractDLock.setTimestampExpiry(long timestampExpiry)
Get timestamp (in milliseconds) when the lock-acquisition expires.
|
| Modifier and Type | Class and Description |
|---|---|
class |
InmemDLock
In-memory implementation of
IDLock. |
| Modifier and Type | Class and Description |
|---|---|
class |
BaseRedisDLock
|
class |
ClusteredRedisDLock
Clustered Redis implementation of
ICache. |
class |
RedisDLock
|
Copyright © 2018 DDTH. All rights reserved.