A B C D G H I L M N O R S T U V 
All Classes All Packages

A

AbstractDLock - Class in com.github.ddth.dlock.impl
Abstract implementation of IDLock.
AbstractDLock(String) - Constructor for class com.github.ddth.dlock.impl.AbstractDLock
 
AbstractDLockFactory - Class in com.github.ddth.dlock.impl
Abstract implementation of IDLockFactory that creates AbstractDLock instances.
AbstractDLockFactory() - Constructor for class com.github.ddth.dlock.impl.AbstractDLockFactory
 

B

BaseRedisDLock - Class in com.github.ddth.dlock.impl.redis
Base class for Redis-based implementations of IDLock.
BaseRedisDLock(String) - Constructor for class com.github.ddth.dlock.impl.redis.BaseRedisDLock
 
BaseRedisDLockFactory - Class in com.github.ddth.dlock.impl.redis
Base class for Redis-based implementations of IDLockFactory.
BaseRedisDLockFactory() - Constructor for class com.github.ddth.dlock.impl.redis.BaseRedisDLockFactory
 
buildJedisConnector() - Method in class com.github.ddth.dlock.impl.redis.BaseRedisDLock
Build a JedisConnector instance for my own use.
buildJedisConnector() - Method in class com.github.ddth.dlock.impl.redis.BaseRedisDLockFactory
Build a JedisConnector instance for my own use.
buildJedisConnector() - Method in class com.github.ddth.dlock.impl.redis.ClusteredRedisDLock
buildJedisConnector() - Method in class com.github.ddth.dlock.impl.redis.ClusteredRedisDLockFactory
buildJedisConnector() - Method in class com.github.ddth.dlock.impl.redis.RedisDLock
buildJedisConnector() - Method in class com.github.ddth.dlock.impl.redis.RedisDLockFactory
buildLockName(String) - Method in class com.github.ddth.dlock.impl.AbstractDLockFactory

C

close() - Method in class com.github.ddth.dlock.impl.AbstractDLock
close() - Method in class com.github.ddth.dlock.impl.AbstractDLockFactory
 
closeJedisConnector(JedisConnector, boolean) - Static method in class com.github.ddth.dlock.impl.redis.internal.RedisUtils
Close the supplied JedisConnector instance.
ClusteredRedisDLock - Class in com.github.ddth.dlock.impl.redis
Clustered Redis implementation of ICache.
ClusteredRedisDLock(String) - Constructor for class com.github.ddth.dlock.impl.redis.ClusteredRedisDLock
 
ClusteredRedisDLockFactory - Class in com.github.ddth.dlock.impl.redis
Clustered Redis implementation of IDLockFactory that creates ClusteredRedisDLock objects.
ClusteredRedisDLockFactory() - Constructor for class com.github.ddth.dlock.impl.redis.ClusteredRedisDLockFactory
 
com.github.ddth.dlock - package com.github.ddth.dlock
 
com.github.ddth.dlock.impl - package com.github.ddth.dlock.impl
 
com.github.ddth.dlock.impl.inmem - package com.github.ddth.dlock.impl.inmem
 
com.github.ddth.dlock.impl.redis - package com.github.ddth.dlock.impl.redis
 
com.github.ddth.dlock.impl.redis.internal - package com.github.ddth.dlock.impl.redis.internal
 
createAndInitLockInstance(String, Properties) - Method in class com.github.ddth.dlock.impl.AbstractDLockFactory
Create and initializes an IDLock instance, ready for use.
createLock(String) - Method in interface com.github.ddth.dlock.IDLockFactory
Create a new lock.
createLock(String) - Method in class com.github.ddth.dlock.impl.AbstractDLockFactory
Create a new lock.
createLock(String) - Method in class com.github.ddth.dlock.impl.inmem.InmemDLockFactory
Create a new lock.
createLock(String) - Method in class com.github.ddth.dlock.impl.redis.BaseRedisDLockFactory
Create a new lock.
createLock(String) - Method in class com.github.ddth.dlock.impl.redis.ClusteredRedisDLockFactory
Create a new lock.
createLock(String) - Method in class com.github.ddth.dlock.impl.redis.RedisDLockFactory
Create a new lock.
createLockInternal(String, Properties) - Method in class com.github.ddth.dlock.impl.AbstractDLockFactory
Create a new lock instance, but does not initialize it.
createLockInternal(String, Properties) - Method in class com.github.ddth.dlock.impl.inmem.InmemDLockFactory
Create a new lock instance, but does not initialize it.
createLockInternal(String, Properties) - Method in class com.github.ddth.dlock.impl.redis.ClusteredRedisDLockFactory
Create a new lock instance, but does not initialize it.
createLockInternal(String, Properties) - Method in class com.github.ddth.dlock.impl.redis.RedisDLockFactory
Create a new lock instance, but does not initialize it.

D

DEFAULT_LOCK_DURATION_MS - Static variable in interface com.github.ddth.dlock.IDLock
 
destroy() - Method in class com.github.ddth.dlock.impl.AbstractDLock
Cleanup method.
destroy() - Method in class com.github.ddth.dlock.impl.AbstractDLockFactory
 
destroy() - Method in class com.github.ddth.dlock.impl.redis.BaseRedisDLock
Cleanup method.
destroy() - Method in class com.github.ddth.dlock.impl.redis.BaseRedisDLockFactory
DLockException - Exception in com.github.ddth.dlock
Throws to indicate there has been an exception while interacting with the underlying system.
DLockException() - Constructor for exception com.github.ddth.dlock.DLockException
 
DLockException(String) - Constructor for exception com.github.ddth.dlock.DLockException
 
DLockException(String, Throwable) - Constructor for exception com.github.ddth.dlock.DLockException
 
DLockException(Throwable) - Constructor for exception com.github.ddth.dlock.DLockException
 
DLockException.OperationNotSupportedException - Exception in com.github.ddth.dlock
Throws to indicate that the operation is not supported/allowed.

G

getClientId() - Method in class com.github.ddth.dlock.impl.AbstractDLock
Get client-id who is currently holding the lock.
getJedis() - Method in class com.github.ddth.dlock.impl.redis.ClusteredRedisDLock
 
getJedis() - Method in class com.github.ddth.dlock.impl.redis.RedisDLock
 
getJedisConnector() - Method in class com.github.ddth.dlock.impl.redis.BaseRedisDLock
 
getJedisConnector() - Method in class com.github.ddth.dlock.impl.redis.BaseRedisDLockFactory
 
getLockNamePrefix() - Method in class com.github.ddth.dlock.impl.AbstractDLockFactory
 
getLockProperties() - Method in class com.github.ddth.dlock.impl.AbstractDLock
Get lock's custom properties.
getLockProperties(String) - Method in class com.github.ddth.dlock.impl.AbstractDLockFactory
Get a lock's properties.
getLockPropertiesMap() - Method in class com.github.ddth.dlock.impl.AbstractDLockFactory
Get all locks properties settings.
getLockProperty(String) - Method in class com.github.ddth.dlock.impl.AbstractDLock
Get lock's custom property.
getName() - Method in interface com.github.ddth.dlock.IDLock
Get lock's name(space).
getName() - Method in class com.github.ddth.dlock.impl.AbstractDLock
Get lock's name(space).
getRedisHostAndPort() - Method in class com.github.ddth.dlock.impl.redis.RedisDLock
Redis' host and port scheme (format host:port).
getRedisHostAndPort() - Method in class com.github.ddth.dlock.impl.redis.RedisDLockFactory
Redis' host and port scheme (format host:port).
getRedisHostsAndPorts() - Method in class com.github.ddth.dlock.impl.redis.ClusteredRedisDLock
Redis' hosts and ports scheme (format host1:port1,host2:port2,host3:port3).
getRedisHostsAndPorts() - Method in class com.github.ddth.dlock.impl.redis.ClusteredRedisDLockFactory
Redis' hosts and ports scheme (format host1:port1,host2:port2,host3:port3).
getRedisPassword() - Method in class com.github.ddth.dlock.impl.redis.BaseRedisDLock
Password to connect to Redis server/cluster.
getRedisPassword() - Method in class com.github.ddth.dlock.impl.redis.BaseRedisDLockFactory
Password to connect to Redis server/cluster.
getScriptLock() - Method in class com.github.ddth.dlock.impl.redis.BaseRedisDLock
 
getScriptUnlock() - Method in class com.github.ddth.dlock.impl.redis.BaseRedisDLock
 
getTimestampExpiry() - Method in class com.github.ddth.dlock.impl.AbstractDLock
Get timestamp (in milliseconds) when the lock-acquisition expires.
getZsetName() - Method in class com.github.ddth.dlock.impl.redis.BaseRedisDLock
Get name of the ZSET to store clientId's score.

H

HOLD_BY_ANOTHER_CLIENT - com.github.ddth.dlock.LockResult
Lock is currently hold by another client

I

IDLock - Interface in com.github.ddth.dlock
Distributed lock interface.
IDLockFactory - Interface in com.github.ddth.dlock
Factory to create IDLock instances.
init() - Method in class com.github.ddth.dlock.impl.AbstractDLock
Init method.
init() - Method in class com.github.ddth.dlock.impl.AbstractDLockFactory
 
init() - Method in class com.github.ddth.dlock.impl.redis.BaseRedisDLock
Init method.
init() - Method in class com.github.ddth.dlock.impl.redis.BaseRedisDLockFactory
init() - Method in class com.github.ddth.dlock.impl.redis.ClusteredRedisDLock
Init method.
init() - Method in class com.github.ddth.dlock.impl.redis.RedisDLock
Init method.
InmemDLock - Class in com.github.ddth.dlock.impl.inmem
In-memory implementation of IDLock.
InmemDLock(String) - Constructor for class com.github.ddth.dlock.impl.inmem.InmemDLock
 
InmemDLockFactory - Class in com.github.ddth.dlock.impl.inmem
In-memory implementation of IDLockFactory that creates InmemDLock objects.
InmemDLockFactory() - Constructor for class com.github.ddth.dlock.impl.inmem.InmemDLockFactory
 

L

lock(int, String) - Method in interface com.github.ddth.dlock.IDLock
Acquire the lock for clientId with default duration.
lock(int, String) - Method in class com.github.ddth.dlock.impl.AbstractDLock
Acquire the lock for clientId with default duration.
lock(int, String, long) - Method in interface com.github.ddth.dlock.IDLock
Acquire the lock for clientId for a duration of lockDurationMs.
lock(int, String, long) - Method in class com.github.ddth.dlock.impl.inmem.InmemDLock
Acquire the lock for clientId for a duration of lockDurationMs.
lock(int, String, long) - Method in class com.github.ddth.dlock.impl.redis.ClusteredRedisDLock
Acquire the lock for clientId for a duration of lockDurationMs.
lock(int, String, long) - Method in class com.github.ddth.dlock.impl.redis.RedisDLock
Acquire the lock for clientId for a duration of lockDurationMs.
lock(String) - Method in interface com.github.ddth.dlock.IDLock
Acquire the lock for clientId with default duration.
lock(String) - Method in class com.github.ddth.dlock.impl.AbstractDLock
Acquire the lock for clientId with default duration.
lock(String, long) - Method in interface com.github.ddth.dlock.IDLock
Acquire the lock for clientId for a duration of lockDurationMs.
lock(String, long) - Method in class com.github.ddth.dlock.impl.AbstractDLock
Acquire the lock for clientId for a duration of lockDurationMs.
LOCK_PROP_REDIS_HOST_AND_PORT - Static variable in class com.github.ddth.dlock.impl.redis.RedisDLock
LOCK_PROP_REDIS_HOSTS_AND_PORTS - Static variable in class com.github.ddth.dlock.impl.redis.ClusteredRedisDLock
LOCK_PROP_REDIS_PASSWORD - Static variable in class com.github.ddth.dlock.impl.redis.BaseRedisDLock
LockResult - Enum in com.github.ddth.dlock
 

M

myOwnRedis - Variable in class com.github.ddth.dlock.impl.redis.BaseRedisDLock
Flag to mark if the Redis resource (e.g.
myOwnRedis - Variable in class com.github.ddth.dlock.impl.redis.BaseRedisDLockFactory
Flag to mark if the Redis resource (e.g.

N

NOT_FOUND - com.github.ddth.dlock.LockResult
Lock is not currently hold by any client (not locked before, or already expired)

O

OperationNotSupportedException() - Constructor for exception com.github.ddth.dlock.DLockException.OperationNotSupportedException
 
OperationNotSupportedException(String) - Constructor for exception com.github.ddth.dlock.DLockException.OperationNotSupportedException
 

R

RedisDLock - Class in com.github.ddth.dlock.impl.redis
Redis implementation of IDLock.
RedisDLock(String) - Constructor for class com.github.ddth.dlock.impl.redis.RedisDLock
 
RedisDLockFactory - Class in com.github.ddth.dlock.impl.redis
Redis implementation of IDLockFactory that creates RedisDLock objects.
RedisDLockFactory() - Constructor for class com.github.ddth.dlock.impl.redis.RedisDLockFactory
 
RedisUtils - Class in com.github.ddth.dlock.impl.redis.internal
 
RedisUtils() - Constructor for class com.github.ddth.dlock.impl.redis.internal.RedisUtils
 

S

setClientId(String) - Method in class com.github.ddth.dlock.impl.AbstractDLock
Get client-id who is currently holding the lock.
setJedisConnector(JedisConnector) - Method in class com.github.ddth.dlock.impl.redis.BaseRedisDLock
 
setJedisConnector(JedisConnector) - Method in class com.github.ddth.dlock.impl.redis.BaseRedisDLockFactory
 
setLockNamePrefix(String) - Method in class com.github.ddth.dlock.impl.AbstractDLockFactory
Name of locks created by this factory will be prefixed by this string.
setLockProperties(Map<String, Properties>) - Method in class com.github.ddth.dlock.impl.AbstractDLockFactory
 
setLockProperties(Properties) - Method in class com.github.ddth.dlock.impl.AbstractDLock
Lock's custom properties.
setName(String) - Method in class com.github.ddth.dlock.impl.AbstractDLock
 
setRedisHostAndPort(String) - Method in class com.github.ddth.dlock.impl.redis.RedisDLock
Redis' host and port scheme (format host:port).
setRedisHostAndPort(String) - Method in class com.github.ddth.dlock.impl.redis.RedisDLockFactory
Redis' host and port scheme (format host:port).
setRedisHostsAndPorts(String) - Method in class com.github.ddth.dlock.impl.redis.ClusteredRedisDLock
Redis' hosts and ports scheme (format host1:port1,host2:port2,host3:port3).
setRedisHostsAndPorts(String) - Method in class com.github.ddth.dlock.impl.redis.ClusteredRedisDLockFactory
Redis' hosts and ports scheme (format host1:port1,host2:port2,host3:port3).
setRedisPassword(String) - Method in class com.github.ddth.dlock.impl.redis.BaseRedisDLock
Password to connect to Redis server/cluster.
setRedisPassword(String) - Method in class com.github.ddth.dlock.impl.redis.BaseRedisDLockFactory
Password to connect to Redis server/cluster.
setScriptLock(String) - Method in class com.github.ddth.dlock.impl.redis.BaseRedisDLock
 
setScriptUnlock(String) - Method in class com.github.ddth.dlock.impl.redis.BaseRedisDLock
 
setTimestampExpiry(long) - Method in class com.github.ddth.dlock.impl.AbstractDLock
Get timestamp (in milliseconds) when the lock-acquisition expires.
SUCCESSFUL - com.github.ddth.dlock.LockResult
Lock operation was successful

T

toString() - Method in class com.github.ddth.dlock.impl.AbstractDLock

U

unlock(String) - Method in interface com.github.ddth.dlock.IDLock
Release the lock.
unlock(String) - Method in class com.github.ddth.dlock.impl.inmem.InmemDLock
Release the lock.
unlock(String) - Method in class com.github.ddth.dlock.impl.redis.ClusteredRedisDLock
Release the lock.
unlock(String) - Method in class com.github.ddth.dlock.impl.redis.RedisDLock
Release the lock.
unlockResult(Object) - Method in class com.github.ddth.dlock.impl.redis.BaseRedisDLock
Convenient method to build result for IDLock.unlock(String)} method with result from Redis server.
updateLockHolder(String, long) - Method in class com.github.ddth.dlock.impl.AbstractDLock
Update current lock's holder info.
updateLockHolder(JedisClusterCommands) - Method in class com.github.ddth.dlock.impl.redis.BaseRedisDLock
Update current lock's holder info.
updateLockHolder(JedisCommands) - Method in class com.github.ddth.dlock.impl.redis.BaseRedisDLock
Update current lock's holder info.

V

value - Variable in enum com.github.ddth.dlock.LockResult
 
valueOf(String) - Static method in enum com.github.ddth.dlock.LockResult
Returns the enum constant of this type with the specified name.
values() - Static method in enum com.github.ddth.dlock.LockResult
Returns an array containing the constants of this enum type, in the order they are declared.
A B C D G H I L M N O R S T U V 
All Classes All Packages