Interface ThrottledRequestExecutor


public interface ThrottledRequestExecutor
Since:
6.0.0
  • Field Summary

    Fields
    Modifier and Type
    Field
    Description
    static final String
    Default implementation bean name.
  • Method Summary

    Modifier and Type
    Method
    Description
    NoOp throttled request executor.
    default boolean
    throttle(jakarta.servlet.http.HttpServletRequest request, jakarta.servlet.http.HttpServletResponse response)
    Attempts to pre-handle and throttle/stifle the requests based on capacity and configured pools.
  • Field Details

  • Method Details

    • noOp

      static ThrottledRequestExecutor noOp()
      NoOp throttled request executor.
      Returns:
      the throttled request executor
    • throttle

      default boolean throttle(jakarta.servlet.http.HttpServletRequest request, jakarta.servlet.http.HttpServletResponse response)
      Attempts to pre-handle and throttle/stifle the requests based on capacity and configured pools.
      Parameters:
      request - the request
      response - the response
      Returns:
      true to stop the throttled request. false to proceed anyway.