Package org.minidns.cache
Class FullLruCache
- java.lang.Object
-
- org.minidns.DnsCache
-
- org.minidns.cache.LruCache
-
- org.minidns.cache.ExtendedLruCache
-
- org.minidns.cache.FullLruCache
-
public class FullLruCache extends ExtendedLruCache
An insecure variant ofLruCachealso using all the data found in the sections of an answer.
-
-
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 FullLruCache()FullLruCache(int capacity)FullLruCache(int capacity, long maxTTL)
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description protected booleanshouldGather(org.minidns.record.Record<? extends org.minidns.record.Data> extraRecord, org.minidns.dnsmessage.Question question, org.minidns.dnsname.DnsName authoritativeZone)-
Methods inherited from class org.minidns.cache.ExtendedLruCache
offer, putNormalized
-
Methods inherited from class org.minidns.cache.LruCache
clear, getExpireCount, getHitCount, getMissCount, getNormalized, toString
-
-
-
-
Method Detail
-
shouldGather
protected boolean shouldGather(org.minidns.record.Record<? extends org.minidns.record.Data> extraRecord, org.minidns.dnsmessage.Question question, org.minidns.dnsname.DnsName authoritativeZone)- Overrides:
shouldGatherin classExtendedLruCache
-
-