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
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)
-
Constructor Details
-
DestTracker
- Parameters:
hash
- hash of the remote destinationthreshold
- 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)
-