Class DestTracker

java.lang.Object
net.i2p.i2ptunnel.access.DestTracker

class DestTracker extends Object
Tracks the connection attempts for a given remote Destination
Since:
0.9.40
  • Constructor Details

    • DestTracker

      DestTracker(Hash hash, Threshold threshold)
      Parameters:
      hash - hash of the remote destination
      threshold - threshold defined in the access rule
  • Method Details

    • getHash

      Hash getHash()
    • getCounter

      AccessCounter getCounter()
    • recordAccess

      boolean recordAccess(long now)
      Returns:
      true if this access causes threshold breach
    • purge

      boolean purge(long olderThan)