Enum RequestHostnameResolver

    • Method Detail

      • values

        public static RequestHostnameResolver[] values()
        Returns an array containing the constants of this enum type, in the order they are declared. This method may be used to iterate over the constants as follows:
        for (RequestHostnameResolver c : RequestHostnameResolver.values())
            System.out.println(c);
        
        Returns:
        an array containing the constants of this enum type, in the order they are declared
      • valueOf

        public static RequestHostnameResolver valueOf​(String name)
        Returns the enum constant of this type with the specified name. The string must match exactly an identifier used to declare an enum constant in this type. (Extraneous whitespace characters are not permitted.)
        Parameters:
        name - the name of the enum constant to be returned.
        Returns:
        the enum constant with the specified name
        Throws:
        IllegalArgumentException - if this enum type has no constant with the specified name
        NullPointerException - if the argument is null
      • resolve

        public io.netty.util.concurrent.Future<List<InetSocketAddress>> resolve​(io.netty.resolver.AddressResolver<InetSocketAddress> addressResolver,
                                                                                InetSocketAddress unresolvedAddress,
                                                                                AsyncHandler<?> asyncHandler)
        Resolve an unresolved address using an AddressResolver obtained from a AddressResolverGroup. This path provides non-blocking DNS resolution with inflight coalescing.
        Parameters:
        addressResolver - the address resolver (from the group, bound to an event loop)
        unresolvedAddress - the unresolved socket address
        asyncHandler - the async handler for lifecycle callbacks
        Returns:
        a future that completes with the list of resolved addresses