Package net.i2p.i2ptunnel.access
Class DestTracker
java.lang.Object
net.i2p.i2ptunnel.access.DestTracker
Tracks the connection attempts for a given remote Destination
- Since:
- 0.9.40
-
Constructor Summary
-
Method Summary
Modifier and TypeMethodDescription(package private) AccessCounter
(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)
-