Class NettyResolverContext

    • Constructor Detail

      • NettyResolverContext

        public NettyResolverContext​(NettyDnsResolver parent,
                                    ExtendedDnsCache cache,
                                    io.github.resilience4j.bulkhead.Bulkhead bulkhead,
                                    int idx)
    • Method Detail

      • init

        public void init()
      • destroy

        public void destroy()
      • lookup

        public CompletableFuture<Optional<InetAddress>> lookup​(String hostname)
        Description copied from interface: DnsResolver
        Perform a DNS lookup for the given hostname. Returns a future that contains the lookup results. If the optional is empty the lookup was completed but no result was found.
        Specified by:
        lookup in interface DnsResolver
        Parameters:
        hostname - hostname to lookup
        Returns:
        a future
      • reverseLookup

        public CompletableFuture<Optional<String>> reverseLookup​(InetAddress inetAddress)
        Description copied from interface: DnsResolver
        Perform a reverse DNS lookup for the given IP address. Returns a future that contains the lookup results. If the optional is empty the lookup was completed but no result was found.
        Specified by:
        reverseLookup in interface DnsResolver
        Parameters:
        inetAddress - IP address to lookup
        Returns:
        a future