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 {
/**
* 拦截器拦截后的反馈
*/
void preHandle(HttpServletRequest request, HttpServletResponse response) throws Exception;
}