Class NegativeLookupCache
java.lang.Object
net.i2p.router.networkdb.kademlia.NegativeLookupCache
class NegativeLookupCache extends Object
Track lookup fails
- Since:
- 0.9.4
-
Field Summary
Fields Modifier and Type Field Description (package private) static intMAX_FAILS -
Constructor Summary
Constructors Constructor Description NegativeLookupCache(RouterContext context) -
Method Summary
Modifier and Type Method Description voidclear()voidfailPermanently(Destination dest)Negative cache the hash until restart, but cache the destination.DestinationgetBadDest(Hash h)Get an unsupported but cached DestinationbooleanisCached(Hash h)voidlookupFailed(Hash h)
-
Field Details
-
MAX_FAILS
static final int MAX_FAILS- See Also:
- Constant Field Values
-
-
Constructor Details
-
Method Details
-
lookupFailed
-
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
-