public static enum Options.HostnameResolveMode extends java.lang.Enum<Options.HostnameResolveMode>
| Enum Constant and Description |
|---|
HappyEyeballs
Attempt to connect to the fastest ip for a host via the Happy Eyeballs algorithm as described in RFC 6555/8305
|
ResolveToAll
Resolve host to all ip addresses allowing for connection attempts to try all ip addresses for a given hostname.
|
ResolveToAllIncludeIPV6
Resolve host to all ip addresses allowing for connection attempts to try all ip addresses for a given hostname.
|
ResolveToFirst
Resolve host to the first ip addresses allowing for connection attempts to try just that first ip addresses for a given hostname.
|
ResolveToFirstIncludeIPV6
Resolve host to the first ip addresses allowing for connection attempts to try just that first ip addresses for a given hostname.
|
Unresolved
Do not resolve, instead use InetSocketAddress.createUnresolved while creating the socket.
|
| Modifier and Type | Field and Description |
|---|---|
boolean |
includeIPV6 |
boolean |
maxOneResult |
boolean |
resolve |
| Modifier and Type | Method and Description |
|---|---|
static Options.HostnameResolveMode |
get(java.lang.String value) |
static Options.HostnameResolveMode |
valueOf(java.lang.String name)
Returns the enum constant of this type with the specified name.
|
static Options.HostnameResolveMode[] |
values()
Returns an array containing the constants of this enum type, in
the order they are declared.
|
public static final Options.HostnameResolveMode ResolveToAll
public static final Options.HostnameResolveMode ResolveToFirst
public static final Options.HostnameResolveMode ResolveToAllIncludeIPV6
public static final Options.HostnameResolveMode ResolveToFirstIncludeIPV6
public static final Options.HostnameResolveMode Unresolved
public static final Options.HostnameResolveMode HappyEyeballs
public final boolean resolve
public final boolean maxOneResult
public final boolean includeIPV6
public static Options.HostnameResolveMode[] values()
for (Options.HostnameResolveMode c : Options.HostnameResolveMode.values()) System.out.println(c);
public static Options.HostnameResolveMode valueOf(java.lang.String name)
name - the name of the enum constant to be returned.java.lang.IllegalArgumentException - if this enum type has no constant with the specified namejava.lang.NullPointerException - if the argument is nullpublic static Options.HostnameResolveMode get(java.lang.String value)