public enum DnsResolvers extends Enum<DnsResolvers> implements DnsResolver
| Enum Constant and Description |
|---|
JVM_DEFAULT
Java VM default resolver.
|
UNRESOLVED
Non-resolving
DnsResolver. |
| Modifier and Type | Method and Description |
|---|---|
static DnsResolvers |
valueOf(String name)
Returns the enum constant of this type with the specified name.
|
static DnsResolvers[] |
values()
Returns an array containing the constants of this enum type, in
the order they are declared.
|
clone, compareTo, equals, finalize, getDeclaringClass, hashCode, name, ordinal, toString, valueOfjvmDefault, resolve, unresolvedpublic static final DnsResolvers JVM_DEFAULT
public static final DnsResolvers UNRESOLVED
DnsResolver. Returns an empty InetAddress to indicate an unresolved address.InetSocketAddress.createUnresolved(String, int)public static DnsResolvers[] values()
for (DnsResolvers c : DnsResolvers.values()) System.out.println(c);
public static DnsResolvers valueOf(String name)
name - the name of the enum constant to be returned.IllegalArgumentException - if this enum type has no constant with the specified nameNullPointerException - if the argument is nullCopyright © 2019 lettuce.io. All rights reserved.