package com.panzhihua.sangeshenbian.annotation;
|
|
import java.lang.annotation.*;
|
|
/**
|
* @Descreption: 分布式锁注解
|
* @Author: lfl
|
*/
|
@Target({ElementType.METHOD})
|
@Retention(RetentionPolicy.RUNTIME)
|
@Documented
|
public @interface DistributedLock {
|
|
/**
|
* 锁名字(没有EL解析)
|
*/
|
String lockName() default "";
|
|
/**
|
* 锁前缀(有EL解析)
|
*/
|
String lockNamePre() default "";
|
|
/**
|
* 锁后缀(有EL解析)
|
*/
|
String lockNamePost() default "";
|
|
/**
|
* 锁前后缀拼接分隔符
|
*/
|
String separator() default "_";
|
}
|