java.lang.Object
net.i2p.router.web.FormHandler.RateLimitEntry
- Enclosing class:
FormHandler
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 Summary
FieldsModifier and TypeFieldDescription(package private) final AtomicIntegerPOSTs charged to the current window; the creating call charges itself.(package private) longWhen the window this count belongs to began, in ms.Constructor Summary
ConstructorsMethod Summary
Field Details
count
POSTs charged to the current window; the creating call charges itself.windowStart
volatile long windowStartWhen the window this count belongs to began, in ms.
Constructor Details
RateLimitEntry
RateLimitEntry()An empty window, opened by the call that created it.