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

com.gitee.fufu669.aspect.LockWithCache Maven / Gradle / Ivy

There is a newer version: 6.666.66021
Show newest version
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