注释类型 LockAction
-
@Target(METHOD) @Retention(RUNTIME) public @interface LockAction
Lock- 从以下版本开始:
- 2020/5/13 16:51
- 版本:
- v1.0
- 作者:
- fxbin
-
-
可选元素概要
可选元素 修饰符和类型 可选元素 说明 LockKeyGeneratorStrategykeyGeneratorTypelock key 生成策略, 如果keys()为空, 则key生成策略自动降级为LockKeyGeneratorStrategy.SampleString[]keyskeyslongleaseTime过期时间(必须是大于业务代码执行时间,默认30秒) 单位: 毫秒LockTimeoutStrategylockTimeoutStrategy加锁超时策略LockTypelockType锁类型ReleaseTimeoutStrategyreleaseTimeoutStrategy释放锁超时策略longretry获取锁重试次数,默认3次TimeUnittimeUnit时间单位,默认:毫秒Stringvalue默认 进程号 + uuid, 同时支持spring el 表达式longwaitTime获取锁超时时间(默认3000毫秒) 单位: 毫秒
-
-
-
元素详细资料
-
keys
String[] keys
keys- 默认值:
- {""}
-
-
-
value
String value
默认 进程号 + uuid, 同时支持spring el 表达式- 默认值:
- ""
-
-
-
keyGeneratorType
LockKeyGeneratorStrategy keyGeneratorType
lock key 生成策略, 如果keys()为空, 则key生成策略自动降级为LockKeyGeneratorStrategy.Sample- 默认值:
- cn.fxbin.bubble.fireworks.plugin.lock.model.LockKeyGeneratorStrategy.Sample
-
-
-
lockType
LockType lockType
锁类型- 默认值:
- cn.fxbin.bubble.fireworks.plugin.lock.annotation.LockType.Default
-
-
-
timeUnit
TimeUnit timeUnit
时间单位,默认:毫秒- 默认值:
- java.util.concurrent.TimeUnit.MILLISECONDS
-
-
-
lockTimeoutStrategy
LockTimeoutStrategy lockTimeoutStrategy
加锁超时策略- 默认值:
- cn.fxbin.bubble.fireworks.plugin.lock.model.LockTimeoutStrategy.NO_OPERATION
-
-
-
releaseTimeoutStrategy
ReleaseTimeoutStrategy releaseTimeoutStrategy
释放锁超时策略- 默认值:
- cn.fxbin.bubble.fireworks.plugin.lock.model.ReleaseTimeoutStrategy.NO_OPERATION
-
-