shz.core.lock.Lock Maven / Gradle / Ivy
package shz.core.lock;
import java.lang.annotation.Documented;
import java.lang.annotation.ElementType;
import java.lang.annotation.Retention;
import java.lang.annotation.RetentionPolicy;
import java.lang.annotation.Target;
import java.util.concurrent.TimeUnit;
@Documented
@Retention(RetentionPolicy.RUNTIME)
@Target({ElementType.METHOD})
public @interface Lock {
String value();
boolean readOnly() default false;
long time() default 0L;
TimeUnit unit() default TimeUnit.MILLISECONDS;
Class extends LockManager> manager() default ReadWriteLockManager.class;
}
© 2015 - 2024 Weber Informatics LLC | Privacy Policy