Interface DoSHandler.Tracker

All Superinterfaces:
CyclicTimeouts.Expirable
Enclosing class:
DoSHandler

public static interface DoSHandler.Tracker extends CyclicTimeouts.Expirable
A RateTracker is associated with an id, and stores request rate data.
  • Nested Class Summary

    Nested Classes
    Modifier and Type
    Interface
    Description
    static interface 
     
  • Method Summary

    Modifier and Type
    Method
    Description
    boolean
    onRequest(long now)
    Add a request to the tracker and check the rate limit

    Methods 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