com.ghp.request.limiter.Limiter Maven / Gradle / Ivy
package com.ghp.request.limiter;
import com.ghp.request.annotation.RequestLimit;
/**
* @author ghp
* @title
* @description
*/
public interface Limiter {
/**
* 判断是否限流
*
* @param methodName 接口方法名
* @param requestLimitAnnotation @return true-发生限流 false-未限流
* @return true-限流 false-未限流
*/
boolean limit(String methodName, RequestLimit requestLimitAnnotation);
}
© 2015 - 2025 Weber Informatics LLC | Privacy Policy