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