|
@@ -93,6 +93,11 @@ public class ApiFlowLimitedInterceptor implements HandlerInterceptor {
|
|
|
|
|
|
boolean acquired = rateLimiter.tryAcquire();
|
|
boolean acquired = rateLimiter.tryAcquire();
|
|
if (!acquired) {
|
|
if (!acquired) {
|
|
|
|
+
|
|
|
|
+ if (INTERFACE_LOG.isDebugEnabled()) {
|
|
|
|
+ INTERFACE_LOG.debug("[Limited]. ");
|
|
|
|
+ }
|
|
|
|
+
|
|
response.setStatus(HttpStatus.SERVICE_UNAVAILABLE.value());
|
|
response.setStatus(HttpStatus.SERVICE_UNAVAILABLE.value());
|
|
ServletUtil.returnJson(new StatusResponse("503", "limited"), response);
|
|
ServletUtil.returnJson(new StatusResponse("503", "limited"), response);
|
|
return false;
|
|
return false;
|