|
@@ -0,0 +1,18 @@
|
|
|
+package org.hsweb.concurrent.lock.annotation;
|
|
|
+
|
|
|
+import java.lang.annotation.*;
|
|
|
+import java.util.concurrent.TimeUnit;
|
|
|
+
|
|
|
+/**
|
|
|
+ * Created by zhouhao on 16-5-13.
|
|
|
+ */
|
|
|
+@Target({ElementType.METHOD, ElementType.TYPE})
|
|
|
+@Retention(RetentionPolicy.RUNTIME)
|
|
|
+@Documented
|
|
|
+public @interface LockName {
|
|
|
+ String value();
|
|
|
+
|
|
|
+ boolean expression() default false;
|
|
|
+
|
|
|
+ String expressionLanguage() default "spel";
|
|
|
+}
|