Annotation Interface RateLimiting
-
Required Element Summary
Required Elements -
Optional Element Summary
Optional ElementsModifier and TypeOptional ElementDescriptionThe cache key which is mayby modified the e.g. the method nameratePerMethod()An optional execute condition which overrides the execute condition from the property fileAn optional fall back method which is executed when the rate limit occurs instead of throwing theRateLimitException.booleanThe Name of the annotated method will be added to the cache key.An optional execute condition which overrides the execute condition from the property file
-
Element Details
-
name
String name- Returns:
- The name of the rate limit configuration as a reference to the property file
-
-
-
cacheKey
String cacheKeyThe cache key which is mayby modified the e.g. the method nameratePerMethod()- Returns:
- the cache key.
- Default:
- ""
-
executeCondition
String executeConditionAn optional execute condition which overrides the execute condition from the property file- Returns:
- the expression in the Spring Expression Language format.
- Default:
- ""
-
skipCondition
String skipConditionAn optional execute condition which overrides the execute condition from the property file- Returns:
- the expression in the Spring Expression Language format.
- Default:
- ""
-
ratePerMethod
boolean ratePerMethodThe Name of the annotated method will be added to the cache key. It's maybe a problem- Returns:
- true if the method name should be added to the cache key.
- Default:
- false
-
fallbackMethodName
String fallbackMethodNameAn optional fall back method which is executed when the rate limit occurs instead of throwing theRateLimitException.The arguments and the return type of the fallback method must have the same signature.
- Returns:
- the name of the public method which resists in the same class.
- Default:
- ""
-