public class ExtendedLruCache extends LruCache
LruCache
also using the data found in the sections for caching.backend, capacity, expireCount, hitCount, maxTTL, missCount
DEFAULT_CACHE_SIZE
Constructor and Description |
---|
ExtendedLruCache() |
ExtendedLruCache(int capacity) |
ExtendedLruCache(int capacity,
long maxTTL) |
Modifier and Type | Method and Description |
---|---|
void |
offer(DnsMessage query,
DnsMessage reply,
DnsName authoritativeZone) |
protected void |
putNormalized(DnsMessage q,
DnsMessage message) |
protected boolean |
shouldGather(Record<? extends Data> extraRecord,
Question question,
DnsName authoritativeZone) |
clear, getExpireCount, getHitCount, getMissCount, getNormalized, toString
public ExtendedLruCache()
public ExtendedLruCache(int capacity)
public ExtendedLruCache(int capacity, long maxTTL)
protected void putNormalized(DnsMessage q, DnsMessage message)
putNormalized
in class LruCache
public void offer(DnsMessage query, DnsMessage reply, DnsName authoritativeZone)
protected boolean shouldGather(Record<? extends Data> extraRecord, Question question, DnsName authoritativeZone)