Annotation for marking methods that require service request degradation (downgrade). This annotation is used to apply
flow control rules that trigger a fallback mechanism when certain conditions are met, such as exceeding a defined
threshold.
- Since:
- Java 17+
- Author:
- Kimi Liu
-
Required Element Summary
Required Elements
-
Element Details
-
grade
FlowGrade gradeSpecifies the flow grade for the downgrade rule. This determines the type of metric used for limiting, e.g., QPS or thread count.- Returns:
- The
FlowGradefor the downgrade rule.
-
count
int countSpecifies the threshold count for the downgrade rule. When the resource usage exceeds this count, the downgrade mechanism is triggered.- Returns:
- The count threshold for the downgrade rule.
-