java.lang.Object
net.i2p.router.web.FormHandler.RateLimitEntry
Enclosing class:
FormHandler

static class FormHandler.RateLimitEntryextends Object
One window's POST count. windowStart moves with the window, so a client that outlives the first one is counted again instead of waved through forever.
  • Field Details

    • count

      final AtomicInteger count
      POSTs charged to the current window; the creating call charges itself.
    • windowStart

      volatile long windowStart
      When the window this count belongs to began, in ms.
  • Constructor Details

    • RateLimitEntry

      RateLimitEntry()
      An empty window, opened by the call that created it.