| 程序包 | 说明 |
|---|---|
| com.hccake.ballcat.common.redis.lock |
| 限定符和类型 | 类和说明 |
|---|---|
class |
DistributedLock<T> |
| 限定符和类型 | 方法和说明 |
|---|---|
default StateHandler<T> |
Action.action(String lockKey,
long timeout,
ThrowingExecutor<T> supplier)
执行方法
|
StateHandler<T> |
DistributedLock.action(String lockKey,
long timeout,
TimeUnit timeUnit,
ThrowingExecutor<T> action) |
StateHandler<T> |
Action.action(String lockKey,
long timeout,
TimeUnit timeUnit,
ThrowingExecutor<T> supplier)
执行方法
|
default StateHandler<T> |
Action.action(String lockKey,
ThrowingExecutor<T> supplier)
执行方法,采用配置文件中的默认过期时间
|
StateHandler<T> |
StateHandler.onException(ExceptionHandler action)
获取锁成功,执行业务方法异常回调
|
StateHandler<T> |
DistributedLock.onException(ExceptionHandler exceptionHandler) |
StateHandler<T> |
StateHandler.onLockFail(Supplier<T> action)
获取锁失败回调
|
StateHandler<T> |
DistributedLock.onLockFail(Supplier<T> action) |
StateHandler<T> |
StateHandler.onSuccess(UnaryOperator<T> action)
获取锁成功,业务方法执行成功回调
|
StateHandler<T> |
DistributedLock.onSuccess(UnaryOperator<T> action) |
Copyright © 2023. All rights reserved.