@Target(value={METHOD,ANNOTATION_TYPE})
@Retention(value=RUNTIME)
@Inherited
@Documented
public @interface Throttle
| Modifier and Type | Fields and Description |
|---|---|
static long |
DefaultThreshold |
| Modifier and Type | Optional Element and Description |
|---|---|
boolean |
isSpELName
name()是否SpEL字符串,默认false。 |
java.lang.String |
name
支持SpEL,参考
EventListener.condition()。
root对象是ThrottleAdvice.EvaluationRoot |
long |
threshold |
java.util.concurrent.TimeUnit[] |
timeUnit
若为空则创建计数器节流器,否则创建时间节流器。
|
long |
value |
public abstract java.lang.String name
EventListener.condition()。
root对象是ThrottleAdvice.EvaluationRootpublic abstract boolean isSpELName
name()是否SpEL字符串,默认false。