package net.i2p.router.util
Router utility classes: CoDel active queue management, time-decaying collections, a diagnostics ring buffer, CIDR matching, and password management. Not for use by apps, clients or plugins.
The main classes are CoDelBlockingQueue, CoDelPriorityBlockingQueue, DecayingBloomFilter, DecayingHashSet, EventLog, MaskedIPSet and RouterPasswordManager.
See also: RFC 8289 (CoDel).
- ClassDescriptionArrayList with per-thread cached iterators for reduced object allocation overhead.An iterator reused across traversals of the list.Synchronized collection with per-thread cached iterators for efficient element iteration.Static inner CachedIterator class - implements hasNext(),
CachedIteratorCollection.CachedIterator.next()& remove()Node object that contains: (1) Data object (2) Link to previous Node object (3) Link to next Node object.Interface for CoDel priority queue entries with extended tracking.Interface for CoDel queue entries with enqueue time tracking.CoDelBlockingQueue<E extends CDQEntry>CoDel (Controlled Delay) implementation of Active Queue Management.CoDelPriorityBlockingQueue<E extends CDPQEntry>CoDel (Controlled Delay) implementation with priority-based queue management.Time-decaying Bloom filter series for efficient data management.Double-buffered hash set with time-based decay for efficient data management.This saves the data as-is if the length is <= 8 bytes, otherwise it stores an 8-byte hash.What a decay found, carried out of the write lock so the caller can log it without extending the exclusive section.Event logging utility with caching and file-based persistence.Utility for calculating XOR distance between router hashes.IP address masking utility for router family and network detection.Interface for priority queue entries with sequence tracking.PriBlockingQueue<E extends PQEntry>Priority blocking queue with bounded capacity and FIFO ordering within priority levels.PriBlockingQueue.PriorityComparator<E extends PQEntry>Comparator used to order queue elements by descending priority, then ascending sequence number to preserve FIFO inside priority.Random iterator for efficient early-termination iteration over collections.Singleton set with removable element support and iterator functionality.Comprehensive password management for router configuration with migration support.