cn.yueshutong.springbootstartercurrentlimiting.handler.CurrentAspectHandler 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 cn.yueshutong.springbootstartercurrentlimiting.annotation.CurrentLimiter;
import org.aspectj.lang.ProceedingJoinPoint;
/**
* Create by [email protected]
*/
public interface CurrentAspectHandler {
/**
* 自定义对CurrentLimiter注解的拦截处理
*/
Object around(ProceedingJoinPoint pjp, CurrentLimiter rateLimiter)throws Throwable;
}