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

com.zhuang.distributedlock.annotation.DistributedLock Maven / Gradle / Ivy

There is a newer version: 1.2.2
Show newest version
package com.zhuang.distributedlock.annotation;

import java.lang.annotation.*;


@Target({ElementType.METHOD})
@Retention(RetentionPolicy.RUNTIME)
@Inherited
public @interface DistributedLock {

    String key() default "";//锁的KEY

    String lockPre() default "";//锁的前缀

    int retryCount() default 0;//重试次数

    long expiredTime() default 0;//持锁时间 单位:毫秒

}




© 2015 - 2024 Weber Informatics LLC | Privacy Policy