![JAR search and dependency download from the Maven repository](/logo.png)
com.gitee.fufu669.aspect.LockWithCache Maven / Gradle / Ivy
package com.gitee.fufu669.aspect;
import com.gitee.fufu669.common.CacheKeyCommon;
import java.lang.annotation.ElementType;
import java.lang.annotation.Retention;
import java.lang.annotation.RetentionPolicy;
import java.lang.annotation.Target;
/**在方法上加把锁,如果没有成功lock则抛出异常。*/
@Target(ElementType.METHOD)
@Retention(RetentionPolicy.RUNTIME)
/** @author wangfupeng */
public @interface LockWithCache {
int expireSeconds() default CacheKeyCommon.CACHESERVICE_REDIS_LOCK_DEFAULT_EXPIRED_SECONDS;
/*在打印日志时会出现的提示*/
String description() default "";
}
© 2015 - 2025 Weber Informatics LLC | Privacy Policy