Annotation for marking methods that require request limiting. This annotation is used to control the rate of incoming
requests to a method, preventing it from being overwhelmed.
- Since:
- Java 17+
- Author:
- Kimi Liu
-
Required Element Summary
Required Elements
-
Element Details
-
count
int countSpecifies the maximum number of requests allowed within a defined duration.- Returns:
- The maximum request count.
-
duration
int durationSpecifies the time window in seconds during which thecount()is applied.- Returns:
- The duration in seconds for the limiting window.
-