public abstract class BaseRedisDLockFactory extends AbstractDLockFactory
IDLockFactory.| Modifier and Type | Field and Description |
|---|---|
protected boolean |
myOwnRedis
Flag to mark if the Redis resource (e.g.
|
| Constructor and Description |
|---|
BaseRedisDLockFactory() |
| Modifier and Type | Method and Description |
|---|---|
protected abstract com.github.ddth.commons.redis.JedisConnector |
buildJedisConnector()
Build a
JedisConnector instance for my own use. |
void |
destroy() |
protected com.github.ddth.commons.redis.JedisConnector |
getJedisConnector() |
String |
getRedisPassword() |
BaseRedisDLockFactory |
init() |
BaseRedisDLockFactory |
setJedisConnector(com.github.ddth.commons.redis.JedisConnector jedisConnector) |
BaseRedisDLockFactory |
setRedisPassword(String redisPassword) |
buildLockName, close, createAndInitLockInstance, createLock, createLockInternal, getLockNamePrefix, getLockProperties, getLockPropertiesMap, setLockNamePrefix, setLockPropertiesprotected boolean myOwnRedis
public String getRedisPassword()
public BaseRedisDLockFactory setRedisPassword(String redisPassword)
protected com.github.ddth.commons.redis.JedisConnector getJedisConnector()
public BaseRedisDLockFactory setJedisConnector(com.github.ddth.commons.redis.JedisConnector jedisConnector)
jedisConnector - protected abstract com.github.ddth.commons.redis.JedisConnector buildJedisConnector()
JedisConnector instance for my own use.public BaseRedisDLockFactory init()
init in class AbstractDLockFactorypublic void destroy()
destroy in class AbstractDLockFactoryCopyright © 2018 DDTH. All rights reserved.