@Target(value=METHOD) @Retention(value=RUNTIME) @Documented public @interface RedissonLock
| Modifier and Type | Optional Element and Description |
|---|---|
cn.sinozg.applet.common.enums.LockGranularityType |
granularity
定时任务的时候,锁的粒度,即多久内执行一次,其他的都算重复
|
String |
key
为空,则锁方法,有值,锁对应的值,支持spEL表达式
|
int |
leaseTime
锁多久后自动释放(单位:秒)
|
boolean |
scheduled
是否为定时任务
|
int |
waitTime
等待多久(单位:秒)
|
public abstract String key
Copyright © 2024. All rights reserved.