net.i2p.router.networkdb.kademlia
Class NegativeLookupCache

java.lang.Object
  extended by net.i2p.router.networkdb.kademlia.NegativeLookupCache

 class NegativeLookupCache
extends Object

Track lookup fails

Since:
0.9.4

Constructor Summary
NegativeLookupCache()
           
 
Method Summary
 void clear()
           
 void failPermanently(Destination dest)
          Negative cache the hash until restart, but cache the destination.
 Destination getBadDest(Hash h)
          Get an unsupported but cached Destination
 boolean isCached(Hash h)
           
 void lookupFailed(Hash h)
           
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Constructor Detail

NegativeLookupCache

public NegativeLookupCache()
Method Detail

lookupFailed

public void lookupFailed(Hash h)

isCached

public boolean isCached(Hash h)

failPermanently

public void failPermanently(Destination dest)
Negative cache the hash until restart, but cache the destination.

Since:
0.9.16

getBadDest

public Destination getBadDest(Hash h)
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