java.lang.Object
org.klomp.snark.dht.DHTTracker.FilterCache
- Enclosing class:
DHTTracker
Bloom filters for a torrent, with the time they were built, so the per-query rebuild cost is amortized and the filters are rebuilt once they age out.
Field Summary
FieldsModifier and TypeFieldDescription(package private) final longWhen the cached filters were built.(package private) final BloomFilter[]The cached bloom filters, one per torrent.Constructor Summary
ConstructorsConstructorDescriptionFilterCache(BloomFilter[] filters, long created) Caches the bloom filters of all torrents.Method Summary
Field Details
filters
The cached bloom filters, one per torrent.created
final long createdWhen the cached filters were built.
Constructor Details
FilterCache
FilterCache(BloomFilter[] filters, long created) Caches the bloom filters of all torrents.- Parameters:
filters- the cached bloom filterscreated- when they were built