Package net.i2p.i2ptunnel.access
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 Summary
Constructors Constructor Description DestTracker(Hash hash, Threshold threshold)
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description (package private) AccessCounter
getCounter()
(package private) Hash
getHash()
(package private) boolean
purge(long olderThan)
(package private) boolean
recordAccess(long now)
-
-
-
Method Detail
-
getHash
Hash getHash()
-
getCounter
AccessCounter getCounter()
-
recordAccess
boolean recordAccess(long now)
- Returns:
- true if this access causes threshold breach
-
purge
boolean purge(long olderThan)
-
-