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

com.genxiaogu.bigdata.ratelimiter.annotation.Limiter Maven / Gradle / Ivy

There is a newer version: 2.0.1
Show newest version
package com.genxiaogu.bigdata.ratelimiter.annotation;

import java.lang.annotation.ElementType;
import java.lang.annotation.Retention;
import java.lang.annotation.RetentionPolicy;
import java.lang.annotation.Target;

/**
 * Created by wb-lz260260 on 2017/7/4.
 */
@Retention(RetentionPolicy.RUNTIME)
@Target({ElementType.METHOD})
public @interface Limiter {

    /**
     * 限流route
     * @return
     */
    String route();

    /**
     * 限流次数
     * @return
     */
    int limit() default 10;

}




© 2015 - 2024 Weber Informatics LLC | Privacy Policy