Jay
2024-10-16 a40221c883c632630b4876ad846e08c0da8af388
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
package com.iailab.framework.ratelimiter.core.keyresolver;
 
import com.iailab.framework.ratelimiter.core.annotation.RateLimiter;
import org.aspectj.lang.JoinPoint;
 
/**
 * 限流 Key 解析器接口
 *
 * @author iailab
 */
public interface RateLimiterKeyResolver {
 
    /**
     * 解析一个 Key
     *
     * @param rateLimiter 限流注解
     * @param joinPoint  AOP 切面
     * @return Key
     */
    String resolver(JoinPoint joinPoint, RateLimiter rateLimiter);
 
}