cn.yueshutong.springbootstartercurrentlimiting.handler.CurrentInterceptorHandler Maven / Gradle / Ivy
Go to download
Show more of this group Show more artifacts with this name
Show all versions of spring-boot-starter-current-limiting Show documentation
Show all versions of spring-boot-starter-current-limiting Show documentation
Current limiting tool based on leak bucket algorithm and token bucket algorithm.
package cn.yueshutong.springbootstartercurrentlimiting.handler;
import javax.servlet.http.HttpServletRequest;
import javax.servlet.http.HttpServletResponse;
/**
* Create by [email protected]
*/
public interface CurrentInterceptorHandler {
/**
* 自定义全局的拦截处理
* true:表示放行,false:表示拦截
*/
void preHandle(HttpServletRequest request, HttpServletResponse response, Object handler) throws Exception;
}