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

com.gitee.fufu669.aspect.MockExecuteLater 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;

/** 立即返回,然后调多线程执行代码 */
@Target(ElementType.METHOD)
@Retention(RetentionPolicy.RUNTIME)
/** @author wangfupeng */
public @interface MockExecuteLater {

    /*Integer 执行之间的间隔秒数,默认是-1,意思是立即执行。*/
    int secondsBetweenExecutions() default CacheKeyCommon.MOCKEXECUTELATER_DEFAULT_SECONDS_BETWEEN_EXECUTIONS;

    /*在打印日志时会出现的提示*/
    String description() default "";
}




© 2015 - 2024 Weber Informatics LLC | Privacy Policy