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