All Downloads are FREE. Search and download functionalities are using the official Maven repository.

shz.core.lock.Lock Maven / Gradle / Ivy

There is a newer version: 2024.0.2
Show newest version
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 manager() default ReadWriteLockManager.class;
}




© 2015 - 2024 Weber Informatics LLC | Privacy Policy