Class DnsQueryContextManager


  • final class DnsQueryContextManager
    extends java.lang.Object
    • Field Detail

      • map

        final java.util.Map<java.net.InetSocketAddress,​IntObjectMap<DnsQueryContext>> map
        A map whose key is the DNS server address and value is the map of the DNS query ID and its corresponding DnsQueryContext.
    • Constructor Detail

      • DnsQueryContextManager

        DnsQueryContextManager()
    • Method Detail

      • get

        DnsQueryContext get​(java.net.InetSocketAddress nameServerAddr,
                            int id)
      • remove

        DnsQueryContext remove​(java.net.InetSocketAddress nameServerAddr,
                               int id)
      • toCompactAddress

        private static java.net.Inet6Address toCompactAddress​(java.net.Inet4Address a4)
      • toIPv4Address

        private static java.net.Inet4Address toIPv4Address​(java.net.Inet6Address a6)