@UnstableApi public enum ResolvedAddressTypes extends java.lang.Enum<ResolvedAddressTypes>
Enum Constant and Description |
---|
IPV4_ONLY
只解析IPv4地址
|
IPV4_PREFERRED
优先考虑IPv4地址
|
IPV6_ONLY
只解析IPv6地址
|
IPV6_PREFERRED
优先选择IPv4地址的IPv6地址
|
Modifier and Type | Method and Description |
---|---|
static ResolvedAddressTypes |
valueOf(java.lang.String name)
以指定名称返回此类型的枚举常量。
|
static ResolvedAddressTypes[] |
values()
按照声明的顺序返回包含此枚举类型常量的数组。
|
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(java.lang.String name)
name
- 要返回的枚举常量的名称。
java.lang.IllegalArgumentException
- 如果此枚举类型没有指定名称的常量
java.lang.NullPointerException
- if the argument is null
Copyright © 2008–2018 The Netty Project. All rights reserved.