@Override
    public boolean throttle(final HttpServletRequest request,
                            final HttpServletResponse response) {
        val clientInfo = ClientInfoHolder.getClientInfo();
        if (clientInfo != null) {
            val remoteAddress = clientInfo.getClientIpAddress();
            val result = bucketConsumer.consume(remoteAddress);
            result.getHeaders().forEach(response::addHeader);
            return !result.isConsumed();
        }
        return false;
    }
This is {@link Bucket4jThrottledRequestExecutor}.

@author Misagh Moayyed
@since 6.0.0
support/cas-server-support-throttle-bucket4j/src/main/java/org/apereo/cas/web/Bucket4jThrottledRequestExecutor.java