Interface RateLimitTypeStrategy

All Known Implementing Classes:
DefaultSpElLimitTypeStrategy, IpLimitTypeStrategy

public interface RateLimitTypeStrategy
限流类型策略接口.

定义限流key生成策略的接口,不同的实现可以提供不同的限流维度.

Author:
Liu,Dongdong, codeupsoft
  • Method Summary

    Modifier and Type
    Method
    Description
    getLimitKey(String key, org.springframework.web.method.HandlerMethod handlerMethod, jakarta.servlet.http.HttpServletRequest request)
     
     
  • Method Details

    • getLimitType

      String getLimitType()
    • getLimitKey

      String getLimitKey(String key, org.springframework.web.method.HandlerMethod handlerMethod, jakarta.servlet.http.HttpServletRequest request)