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 ofLruCache
also 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 boolean
shouldGather(Record<? extends Data> extraRecord, Question question, 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
-
-
-
-
Constructor Detail
-
FullLruCache
public FullLruCache()
-
FullLruCache
public FullLruCache(int capacity)
-
FullLruCache
public FullLruCache(int capacity, long maxTTL)
-
-
Method Detail
-
shouldGather
protected boolean shouldGather(Record<? extends Data> extraRecord, Question question, DnsName authoritativeZone)
- Overrides:
shouldGather
in classExtendedLruCache
-
-