Interface RateLimitKeyResolver

All Known Implementing Classes:
ArgRateLimitKeyResolver, RequestRateLimitKeyResolver

public interface RateLimitKeyResolver
Interface for resolving a rate limit key.
  • Method Summary

    Modifier and Type
    Method
    Description
    boolean
    canResolve(RateLimit rateLimit)
    Checks whether this key resolver support the given rate limit.
    resolve(org.aspectj.lang.JoinPoint joinPoint, RateLimit rateLimit)
    Resolves a rate limit key for given join point and rate limit.
  • Method Details

    • canResolve

      boolean canResolve(RateLimit rateLimit)
      Checks whether this key resolver support the given rate limit.
      Parameters:
      rateLimit - the rate limit
      Returns:
      true if this resolver support the given rate limit; false otherwise
    • resolve

      RateLimitKey resolve(org.aspectj.lang.JoinPoint joinPoint, RateLimit rateLimit)
      Resolves a rate limit key for given join point and rate limit.
      Parameters:
      joinPoint - the join point
      rateLimit - the rate limit
      Returns:
      the resolved key