Skip navigation links
A B C D G I J L M N O R S T U V 

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
 
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
 
close() - Method in class com.github.ddth.dlock.impl.redis.JedisConnector
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
 
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.
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
 
DEFAULT_MAX_ATTEMPTS - Static variable in class com.github.ddth.dlock.impl.redis.ClusteredRedisDLockFactory
 
destroy() - Method in class com.github.ddth.dlock.impl.AbstractDLock
 
destroy() - Method in class com.github.ddth.dlock.impl.AbstractDLockFactory
 
destroy() - Method in class com.github.ddth.dlock.impl.inmem.InmemDLock
destroy() - Method in class com.github.ddth.dlock.impl.redis.BaseRedisDLock
destroy() - Method in class com.github.ddth.dlock.impl.redis.BaseRedisDLockFactory
 
destroy() - Method in class com.github.ddth.dlock.impl.redis.JedisConnector
 
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(Throwable) - Constructor for exception com.github.ddth.dlock.DLockException
 
DLockException(String, 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.JedisConnector
 
getJedis() - Method in class com.github.ddth.dlock.impl.redis.RedisDLock
 
getJedisCluster() - Method in class com.github.ddth.dlock.impl.redis.JedisConnector
 
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).
getRedisHostsAndPorts() - Method in class com.github.ddth.dlock.impl.redis.JedisConnector
Get Redis' hosts and ports scheme (format host1:port1,host2:port2).
getRedisPassword() - Method in class com.github.ddth.dlock.impl.redis.BaseRedisDLock
 
getRedisPassword() - Method in class com.github.ddth.dlock.impl.redis.BaseRedisDLockFactory
 
getRedisPassword() - Method in class com.github.ddth.dlock.impl.redis.JedisConnector
 
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.

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 in class com.github.ddth.dlock.impl.AbstractDLockFactory
 
init() - Method in class com.github.ddth.dlock.impl.redis.BaseRedisDLock
init() - Method in class com.github.ddth.dlock.impl.redis.ClusteredRedisDLock
init() - Method in class com.github.ddth.dlock.impl.redis.ClusteredRedisDLockFactory
init() - Method in class com.github.ddth.dlock.impl.redis.JedisConnector
 
init() - Method in class com.github.ddth.dlock.impl.redis.RedisDLock
init() - Method in class com.github.ddth.dlock.impl.redis.RedisDLockFactory
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
 

J

JedisConnector - Class in com.github.ddth.dlock.impl.redis
Manage connection to Redis server.
JedisConnector() - Constructor for class com.github.ddth.dlock.impl.redis.JedisConnector
 

L

lock(String) - Method in interface com.github.ddth.dlock.IDLock
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) - Method in class com.github.ddth.dlock.impl.AbstractDLock
Acquire the lock for clientId with default duration.
lock(String, long) - Method in class com.github.ddth.dlock.impl.inmem.InmemDLock
Acquire the lock for clientId for a duration of lockDurationMs.
lock(String, long) - Method in class com.github.ddth.dlock.impl.redis.ClusteredRedisDLock
Acquire the lock for clientId for a duration of lockDurationMs.
lock(String, long) - Method in class com.github.ddth.dlock.impl.redis.RedisDLock
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

newJedisCluster(String, String) - Static method in class com.github.ddth.dlock.impl.redis.ClusteredRedisDLockFactory
Creates a new JedisCluster, with default timeout.
newJedisCluster(String, String, long) - Static method in class com.github.ddth.dlock.impl.redis.ClusteredRedisDLockFactory
Creates a new JedisCluster.
newJedisPool(String, String) - Static method in class com.github.ddth.dlock.impl.redis.RedisDLockFactory
Creates a new JedisPool, with default database and timeout.
newJedisPool(String, String, int) - Static method in class com.github.ddth.dlock.impl.redis.RedisDLockFactory
Creates a new JedisPool, with specified database and default timeout.
newJedisPool(String, String, long) - Static method in class com.github.ddth.dlock.impl.redis.RedisDLockFactory
Creates a new JedisPool with default database and specified timeout.
newJedisPool(String, String, int, long) - Static method in class com.github.ddth.dlock.impl.redis.RedisDLockFactory
Creates a new JedisPool.

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
 

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(Properties) - Method in class com.github.ddth.dlock.impl.AbstractDLock
Lock's custom properties.
setLockProperties(Map<String, Properties>) - Method in class com.github.ddth.dlock.impl.AbstractDLockFactory
 
setName(String) - Method in class com.github.ddth.dlock.impl.AbstractDLock
 
setRedisHostAndPort(String) - Method in class com.github.ddth.dlock.impl.redis.RedisDLock
Sets Redis' host and port scheme (format host:port).
setRedisHostAndPort(String) - Method in class com.github.ddth.dlock.impl.redis.RedisDLockFactory
Sets Redis' host and port scheme (format host:port).
setRedisHostsAndPorts(String) - Method in class com.github.ddth.dlock.impl.redis.ClusteredRedisDLock
Sets 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).
setRedisHostsAndPorts(String) - Method in class com.github.ddth.dlock.impl.redis.JedisConnector
Set Redis' hosts and ports scheme (format host1:port1,host2:port2).
setRedisPassword(String) - Method in class com.github.ddth.dlock.impl.redis.BaseRedisDLock
 
setRedisPassword(String) - Method in class com.github.ddth.dlock.impl.redis.BaseRedisDLockFactory
 
setRedisPassword(String) - Method in class com.github.ddth.dlock.impl.redis.JedisConnector
 
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.

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.
updateLockHolder(String, long) - Method in class com.github.ddth.dlock.impl.AbstractDLock
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 I J L M N O R S T U V 
Skip navigation links

Copyright © 2018 DDTH. All rights reserved.