public interface IdempotentKeyStore
| 限定符和类型 | 方法和说明 |
|---|---|
String |
buildIdempotentKey(org.aspectj.lang.ProceedingJoinPoint joinPoint,
Idempotent idempotentAnnotation)
构建幂等键。
|
void |
remove(String key)
删除指定的幂等键。
|
boolean |
saveIfAbsent(String key,
long duration,
TimeUnit timeUnit)
当不存在有效 key 时将其存储下来。
|
String buildIdempotentKey(org.aspectj.lang.ProceedingJoinPoint joinPoint, Idempotent idempotentAnnotation)
joinPoint - 连接点idempotentAnnotation - 幂等注解boolean saveIfAbsent(String key, long duration, TimeUnit timeUnit)
key - 幂等键duration - key 的有效时长timeUnit - 时长单位void remove(String key)
key - 幂等键Copyright © 2025. All rights reserved.