public enum ProtocolDetectionState extends java.lang.Enum<ProtocolDetectionState>
Enum Constant and Description |
---|
DETECTED
协议被发现,
|
INVALID
数据无效。
|
NEEDS_MORE_DATA
需要更多数据来检测协议。
|
Modifier and Type | Method and Description |
---|---|
static ProtocolDetectionState |
valueOf(java.lang.String name)
以指定名称返回此类型的枚举常量。
|
static ProtocolDetectionState[] |
values()
按照声明的顺序返回包含此枚举类型常量的数组。
|
public static final ProtocolDetectionState NEEDS_MORE_DATA
public static final ProtocolDetectionState INVALID
public static final ProtocolDetectionState DETECTED
public static ProtocolDetectionState[] values()
for (ProtocolDetectionState c : ProtocolDetectionState.values())
System.out.println(c);
public static ProtocolDetectionState valueOf(java.lang.String name)
name
- 要返回的枚举常量的名称。
java.lang.IllegalArgumentException
- 如果此枚举类型没有指定名称的常量
java.lang.NullPointerException
- 如果参数为null
Copyright © 2008–2018 The Netty Project. All rights reserved.