Class ExtendedLruCache

  • Direct Known Subclasses:
    FullLruCache

    public class ExtendedLruCache
    extends LruCache
    A variant of LruCache also using the data found in the sections for caching.
    • Constructor Detail

      • ExtendedLruCache

        public ExtendedLruCache()
      • ExtendedLruCache

        public ExtendedLruCache​(int capacity)
      • ExtendedLruCache

        public ExtendedLruCache​(int capacity,
                                long maxTTL)
    • Method Detail

      • offer

        public void offer​(org.minidns.dnsmessage.DnsMessage query,
                          DnsQueryResult result,
                          org.minidns.dnsname.DnsName authoritativeZone)
        Overrides:
        offer in class LruCache
      • shouldGather

        protected boolean shouldGather​(org.minidns.record.Record<? extends org.minidns.record.Data> extraRecord,
                                       org.minidns.dnsmessage.Question question,
                                       org.minidns.dnsname.DnsName authoritativeZone)