Interface RateLimitCheck<R>

Functional Interface:
This is a functional interface and can therefore be used as the assignment target for a lambda expression or method reference.

@FunctionalInterface
public interface RateLimitCheck<R>
Used to check if the rate limit should be performed independently from the Servlet Filter or ZuulFilter.
  • Method Details

    • rateLimit

      ConsumptionProbeHolder rateLimit​(R request, boolean async)
      Parameters:
      request - the request information object
      Returns:
      null if no rate limit should be performed. (maybe skipped or shouldn't be executed).