Annotation Interface DistributedRateLimiter
分布式限流器
- 作者:
- ok1996
-
可选元素概要
可选元素 -
字段概要
字段
-
字段详细资料
-
CONSTANT
Simple Redisson Rate : Rate Limiter Constant- 另请参阅:
-
-
元素详细资料
-
value
String valuekey固定值- 默认值:
- "SimpleRRC:RLC"
-
param
String paramkey动态参数值,支持el表达式1.获取方法参数中的某个值 void test(String id) => #id 2.获取对象参数中的某个值 void test(Vo vo) => #vo.id 3.参数值获取不到 或未配置 ,默认为 PARAM_DEFAULT_VALUE:PDV void test(String id) => #im- 默认值:
- ""
-
includePointMd5
boolean includePointMd5key后缀是否拼接MD5 值:从切点获取方法参数和实例字符串生成对象,转为md5
- 返回:
- 默认生成Md5后缀
- 默认值:
- true
-
rate
long rate速率- 默认值:
- 100L
-
rateTime
long rateTime有效时间- 默认值:
- 1L
-
timeUnit
org.redisson.api.RateIntervalUnit timeUnit时间单位- 默认值:
- SECONDS
-
message
String message失败提示信息- 默认值:
- "\u8bbf\u95ee\u9891\u7e41\uff0c\u8bf7\u7a0d\u540e\u91cd\u8bd5!"
-
type
org.redisson.api.RateType type限流类型 默认全局- 默认值:
- OVERALL
-