@UnstableApi public enum ResolvedAddressTypes extends Enum<ResolvedAddressTypes>
Enum Constant and Description |
---|
IPV4_ONLY
Only resolve IPv4 addresses
|
IPV4_PREFERRED
Prefer IPv4 addresses over IPv6 ones
|
IPV6_ONLY
Only resolve IPv6 addresses
|
IPV6_PREFERRED
Prefer IPv6 addresses over IPv4 ones
|
Modifier and Type | Method and Description |
---|---|
static ResolvedAddressTypes |
valueOf(String name)
Returns the enum constant of this type with the specified name.
|
static ResolvedAddressTypes[] |
values()
Returns an array containing the constants of this enum type, in
the order they are declared.
|
public static final ResolvedAddressTypes IPV4_ONLY
public static final ResolvedAddressTypes IPV6_ONLY
public static final ResolvedAddressTypes IPV4_PREFERRED
public static final ResolvedAddressTypes IPV6_PREFERRED
public static ResolvedAddressTypes[] values()
for (ResolvedAddressTypes c : ResolvedAddressTypes.values()) System.out.println(c);
public static ResolvedAddressTypes 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 © 2008–2019 The Netty Project. All rights reserved.