class NegativeLookupCache extends Object
Modifier and Type | Field and Description |
---|---|
(package private) static int |
MAX_FAILS |
Constructor and Description |
---|
NegativeLookupCache(RouterContext context) |
Modifier and Type | Method and Description |
---|---|
void |
cache(Hash h)
Negative cache the hash until the next clean time.
|
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) |
void |
stop()
Stops the timer.
|
static final int MAX_FAILS
public NegativeLookupCache(RouterContext context)
public void lookupFailed(Hash h)
public void cache(Hash h)
public boolean isCached(Hash h)
public void failPermanently(Destination dest)
public Destination getBadDest(Hash h)
public void clear()
public void stop()