public class RedisSyncLock extends AbstractSyncLock
| 构造器和说明 |
|---|
RedisSyncLock() |
| 限定符和类型 | 方法和说明 |
|---|---|
protected boolean |
doTryLock(String key,
String requestId,
int maxHoldSeconds)
上锁
|
protected void |
doUnLock(String key,
String requestId)
解锁
|
redis.clients.jedis.JedisPool |
getJedisPool() |
void |
setJedisPool(redis.clients.jedis.JedisPool jedisPool) |
getKeyPrefix, getLockKey, getMaxHoldSeconds, getMaxWaitSeconds, getNodeId, getRequestId, getRetryInterval, lock, lock, lock, lock, lock, lock, release, release, run, run, run, run, run, run, setKeyPrefix, setMaxHoldSeconds, setMaxWaitSeconds, setNodeId, setRetryInterval, with, with, with, with, with, withprotected boolean doTryLock(String key, String requestId, int maxHoldSeconds)
doTryLock 在类中 AbstractSyncLockkey - Redis KeyrequestId - Redis ValuemaxHoldSeconds - Redis Expire Timeprotected void doUnLock(String key, String requestId)
AbstractSyncLockdoUnLock 在类中 AbstractSyncLockkey - 业务建requestId - 请求标识public redis.clients.jedis.JedisPool getJedisPool()
public void setJedisPool(redis.clients.jedis.JedisPool jedisPool)
Copyright © 2024. All rights reserved.