Interface DoSHandler.Tracker
- All Superinterfaces:
CyclicTimeouts.Expirable
- Enclosing class:
DoSHandler
A RateTracker is associated with an id, and stores request rate data.
-
Nested Class Summary
Nested Classes -
Method Summary
Modifier and TypeMethodDescriptionboolean
onRequest
(long now) Add a request to the tracker and check the rate limitMethods inherited from interface org.eclipse.jetty.io.CyclicTimeouts.Expirable
getExpireNanoTime
-
Method Details
-
onRequest
boolean onRequest(long now) Add a request to the tracker and check the rate limit- Parameters:
now
- The timestamp of the request- Returns:
true
if the request is below the limit
-