Package org.apereo.cas.throttle
Interface ThrottledRequestExecutor
public interface ThrottledRequestExecutor
This is
ThrottledRequestExecutor.- Since:
- 6.0.0
-
Field Summary
Fields -
Method Summary
Modifier and TypeMethodDescriptionstatic ThrottledRequestExecutornoOp()NoOp throttled request executor.default booleanthrottle(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
-
DEFAULT_BEAN_NAME
Default implementation bean name.- See Also:
-
-
Method Details
-
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 requestresponse- the response- Returns:
- true to stop the throttled request. false to proceed anyway.
-