Package org.asynchttpclient.resolver
Enum RequestHostnameResolver
- java.lang.Object
-
- java.lang.Enum<RequestHostnameResolver>
-
- org.asynchttpclient.resolver.RequestHostnameResolver
-
- All Implemented Interfaces:
Serializable,Comparable<RequestHostnameResolver>
public enum RequestHostnameResolver extends Enum<RequestHostnameResolver>
-
-
Enum Constant Summary
Enum Constants Enum Constant Description INSTANCE
-
Method Summary
All Methods Static Methods Instance Methods Concrete Methods Modifier and Type Method Description io.netty.util.concurrent.Future<List<InetSocketAddress>>resolve(io.netty.resolver.AddressResolver<InetSocketAddress> addressResolver, InetSocketAddress unresolvedAddress, AsyncHandler<?> asyncHandler)Resolve an unresolved address using anAddressResolverobtained from aAddressResolverGroup.io.netty.util.concurrent.Future<List<InetSocketAddress>>resolve(io.netty.resolver.NameResolver<InetAddress> nameResolver, InetSocketAddress unresolvedAddress, AsyncHandler<?> asyncHandler)static RequestHostnameResolvervalueOf(String name)Returns the enum constant of this type with the specified name.static RequestHostnameResolver[]values()Returns an array containing the constants of this enum type, in the order they are declared.
-
-
-
Enum Constant Detail
-
INSTANCE
public static final RequestHostnameResolver INSTANCE
-
-
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 nameNullPointerException- if the argument is null
-
resolve
public io.netty.util.concurrent.Future<List<InetSocketAddress>> resolve(io.netty.resolver.NameResolver<InetAddress> nameResolver, InetSocketAddress unresolvedAddress, AsyncHandler<?> asyncHandler)
-
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 anAddressResolverobtained from aAddressResolverGroup. 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 addressasyncHandler- the async handler for lifecycle callbacks- Returns:
- a future that completes with the list of resolved addresses
-
-