com.github.ratelimiter.handler.OverloadHandler Maven / Gradle / Ivy
Go to download
Show more of this group Show more artifacts with this name
Show all versions of rate-limiter Show documentation
Show all versions of rate-limiter Show documentation
rate limiter for java application with simple annotation
The newest version!
package com.github.ratelimiter.handler;
import org.aspectj.lang.ProceedingJoinPoint;
/**
* 过载保护处理器,当系统出现过载的情况时,可以实现该接口自定义处理逻辑
*/
public interface OverloadHandler {
String LIMIT_ERROR_CODE = "OVERLOAD_ERROR";
Object handle(ProceedingJoinPoint joinPoint);
}