java.lang.Object
org.klomp.snark.dht.DHTTracker.FilterCache
Enclosing class:
DHTTracker

private static class DHTTracker.FilterCacheextends Object
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 Details

    • filters

      final BloomFilter[] filters
      The cached bloom filters, one per torrent.
    • created

      final long created
      When 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 filters
      created - when they were built