You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
* Add `RateLimiterRequestHandlerAdvice.getRateLimiter()` to get access
to the configured `RateLimiter` for possible low-level operations and
management
* Fix the `RateLimiterRequestHandlerAdviceTests` to calculate the sleep
based on the `reservePermission()` plus `REFRESH_PERIOD`
Copy file name to clipboardExpand all lines: spring-integration-core/src/main/java/org/springframework/integration/handler/advice/RateLimiterRequestHandlerAdvice.java
+8
Original file line number
Diff line number
Diff line change
@@ -117,6 +117,14 @@ public RateLimiter.Metrics getMetrics() {
117
117
returnthis.rateLimiter.getMetrics();
118
118
}
119
119
120
+
/**
121
+
* Get a {@link RateLimiter} which is configured for this advice.
122
+
* @return the {@link RateLimiter} for this advice.
Copy file name to clipboardExpand all lines: spring-integration-core/src/test/java/org/springframework/integration/handler/advice/RateLimiterRequestHandlerAdviceTests.java
0 commit comments