public class DefaultRedisExecutor extends AbstractLockExecutor implements LockExecutor
| 构造器和说明 |
|---|
DefaultRedisExecutor(org.springframework.data.redis.core.RedisTemplate redisTemplate,
LockInfo lockInfo) |
| 限定符和类型 | 方法和说明 |
|---|---|
boolean |
releaseLock(LockInfo lockInfo)
releaseLock
|
boolean |
tryLock()
tryLock
|
getLockKey, isHeldByCurrentThreadpublic DefaultRedisExecutor(org.springframework.data.redis.core.RedisTemplate redisTemplate,
LockInfo lockInfo)
public boolean tryLock()
tryLock 在接口中 LockExecutorpublic boolean releaseLock(LockInfo lockInfo)
releaseLock 在接口中 LockExecutorlockInfo - cn.fxbin.bubble.fireworks.plugin.lock.model.LockInfoCopyright © 2020. All rights reserved.