Class NegativeLookupCache
java.lang.Object
net.i2p.router.networkdb.kademlia.NegativeLookupCache
Track lookup fails
- Since:
- 0.9.4
-
Field Summary
Fields -
Constructor Summary
Constructors -
Method Summary
Modifier and TypeMethodDescriptionvoidNegative cache the hash until the next clean time.voidclear()voidfailPermanently(Destination dest) Negative cache the hash until restart, but cache the destination.getBadDest(Hash h) Get an unsupported but cached DestinationbooleanvoidlookupFailed(Hash h) voidstop()Stops the timer.
-
Field Details
-
MAX_FAILS
static final int MAX_FAILS- See Also:
-
-
Constructor Details
-
NegativeLookupCache
-
-
Method Details
-
lookupFailed
-
cache
Negative cache the hash until the next clean time.- Since:
- 0.9.56
-
isCached
-
failPermanently
Negative cache the hash until restart, but cache the destination.- Since:
- 0.9.16
-
getBadDest
Get an unsupported but cached Destination- Returns:
- dest or null if not cached
- Since:
- 0.9.16
-
clear
public void clear()- Since:
- 0.9.16
-
stop
public void stop()Stops the timer. May not be restarted.- Since:
- 0.9.61
-