类 DefaultRedisExecutor
- java.lang.Object
-
- cn.fxbin.bubble.fireworks.plugin.lock.executor.AbstractLockExecutor
-
- cn.fxbin.bubble.fireworks.plugin.lock.executor.redis.DefaultRedisExecutor
-
- 所有已实现的接口:
LockExecutor
public class DefaultRedisExecutor extends AbstractLockExecutor implements LockExecutor
DefaultExecutor- 从以下版本开始:
- 2020/8/5 10:32
- 版本:
- v1.0
- 作者:
- fxbin
-
-
构造器概要
构造器 构造器 说明 DefaultRedisExecutor(org.springframework.data.redis.core.RedisTemplate redisTemplate, LockInfo lockInfo)
-
方法概要
所有方法 实例方法 具体方法 修饰符和类型 方法 说明 booleanreleaseLock(LockInfo lockInfo)releaseLockbooleantryLock()tryLock-
从类继承的方法 cn.fxbin.bubble.fireworks.plugin.lock.executor.AbstractLockExecutor
getLockKey, isHeldByCurrentThread
-
-
-
-
构造器详细资料
-
DefaultRedisExecutor
public DefaultRedisExecutor(org.springframework.data.redis.core.RedisTemplate redisTemplate, LockInfo lockInfo)
-
-
方法详细资料
-
tryLock
public boolean tryLock()
tryLock- 指定者:
tryLock在接口中LockExecutor- 返回:
- boolean
- 从以下版本开始:
- 2020/8/4 17:34
-
releaseLock
public boolean releaseLock(LockInfo lockInfo)
releaseLock- 指定者:
releaseLock在接口中LockExecutor- 参数:
lockInfo- cn.fxbin.bubble.fireworks.plugin.lock.model.LockInfo- 返回:
- boolean
- 从以下版本开始:
- 2020/8/4 17:34
-
-