Package org.minidns.cache
Class ExtendedLruCache
- java.lang.Object
 - 
- org.minidns.DnsCache
 - 
- org.minidns.cache.LruCache
 - 
- org.minidns.cache.ExtendedLruCache
 
 
 
 
- 
- Direct Known Subclasses:
 FullLruCache
public class ExtendedLruCache extends LruCache
A variant ofLruCachealso using the data found in the sections for caching. 
- 
- 
Field Summary
- 
Fields inherited from class org.minidns.cache.LruCache
backend, capacity, expireCount, hitCount, maxTTL, missCount 
- 
Fields inherited from class org.minidns.DnsCache
DEFAULT_CACHE_SIZE 
 - 
 
- 
Constructor Summary
Constructors Constructor Description ExtendedLruCache()ExtendedLruCache(int capacity)ExtendedLruCache(int capacity, long maxTTL) 
- 
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description voidoffer(DnsMessage query, DnsQueryResult result, DnsName authoritativeZone)protected voidputNormalized(DnsMessage q, DnsQueryResult result)protected booleanshouldGather(Record<? extends Data> extraRecord, Question question, DnsName authoritativeZone)- 
Methods inherited from class org.minidns.cache.LruCache
clear, getExpireCount, getHitCount, getMissCount, getNormalized, toString 
 - 
 
 - 
 
- 
- 
Constructor Detail
- 
ExtendedLruCache
public ExtendedLruCache()
 
- 
ExtendedLruCache
public ExtendedLruCache(int capacity)
 
- 
ExtendedLruCache
public ExtendedLruCache(int capacity, long maxTTL)
 
 - 
 
- 
Method Detail
- 
putNormalized
protected void putNormalized(DnsMessage q, DnsQueryResult result)
- Overrides:
 putNormalizedin classLruCache
 
- 
offer
public void offer(DnsMessage query, DnsQueryResult result, DnsName authoritativeZone)
 
- 
shouldGather
protected boolean shouldGather(Record<? extends Data> extraRecord, Question question, DnsName authoritativeZone)
 
 - 
 
 -