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

com.addplus.server.action.config.aspect.RestUnique Maven / Gradle / Ivy

The newest version!
package com.addplus.server.action.config.aspect;

import java.lang.annotation.Documented;
import java.lang.annotation.ElementType;
import java.lang.annotation.Retention;
import java.lang.annotation.Target;
import java.util.concurrent.TimeUnit;

import static java.lang.annotation.RetentionPolicy.RUNTIME;

/**
 * 接口防止重复提交
 */
@Documented
@Retention(RUNTIME)
@Target(ElementType.METHOD)
public @interface RestUnique {

    String key() default "rest_unique:";

    TimeUnit timeUnit() default TimeUnit.SECONDS;

    int time() default 1;

    long frequency() default 1L;

}




© 2015 - 2024 Weber Informatics LLC | Privacy Policy