net.i2p.router.networkdb.kademlia

## Class FloodThrottler

- java.lang.Object
- - net.i2p.router.networkdb.kademlia.FloodThrottler

-     class FloodThrottler
      extends Object

  Provides basic denial-of-service protection for database flood operations.

  Tracks recent flood frequency for each key to prevent excessive flooding of the same data. Implements simple rate limiting with configurable thresholds and automatic cleanup of expired counters.

  Offers lightweight DOS protection by rejecting flood operations that exceed maximum frequency limits within a time window. This is a partial solution and should be used in conjunction with other security mechanisms for comprehensive protection.

- - ### Constructor Summary

    Constructors
    Constructor and Description
    `FloodThrottler()`

  - ### Method Summary

    All Methods Instance Methods Concrete Methods
    Modifier and Type | Method and Description
    --- | ---
    `(package private) boolean` | `shouldThrottle(Hash h)` increments before checking

    - ### Methods inherited from class java.lang.Object

      `clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait`

- - ### Constructor Detail

    - #### FloodThrottler

          FloodThrottler()

  - ### Method Detail

    - #### shouldThrottle

          boolean shouldThrottle(Hash h)

      increments before checking