Annotation Type RateLimiter
-
@Retention(RUNTIME) @Target({METHOD,TYPE}) @Documented public @interface RateLimiter
This annotation can be applied to a class or a specific method. Applying it on a class is equivalent to applying it on all its public methods. The annotation enables throttling for all methods where it is applied. Throttling monitoring is performed via a rate limiter. SeeRateLimiter
for details. If using Spring,name
andfallbackMethod
can be resolved using Spring Expression Language (SpEL).
-
-
Required Element Summary
Required Elements Modifier and Type Required Element Description java.lang.String
name
Name of the rate limiter It can be SpEL expression.
-
Optional Element Summary
Optional Elements Modifier and Type Optional Element Description java.lang.String
fallbackMethod
fallbackMethod method name.
-