public enum HeaderType extends Enum<HeaderType>
| 枚举常量和说明 |
|---|
DATA_CLIENT
Client data stream.
|
DATA_LOGREADER
LogReader data stream.
|
ERROR_RESPONSE
Error response.
|
HANDSHAKE_REQUEST_CLIENT
Client handshake request.
|
HANDSHAKE_REQUEST_LOGREADER
LogReader handshake request.
|
HANDSHAKE_RESPONSE_CLIENT
Client handshake response.
|
HANDSHAKE_RESPONSE_LOGREADER
LogReader handshake response.
|
STATUS
Status info of server runtime.
|
STATUS_LOGREADER
Status info of LogReader.
|
| 限定符和类型 | 方法和说明 |
|---|---|
int |
code()
Get the ordinal of this enumeration constant.
|
static HeaderType |
codeOf(int code)
Returns the enum constant of HeaderType with the specified code.
|
static HeaderType |
valueOf(String name)
返回带有指定名称的该类型的枚举常量。
|
static HeaderType[] |
values()
按照声明该枚举类型的常量的顺序, 返回
包含这些常量的数组。
|
public static final HeaderType ERROR_RESPONSE
public static final HeaderType HANDSHAKE_REQUEST_CLIENT
public static final HeaderType HANDSHAKE_RESPONSE_CLIENT
public static final HeaderType HANDSHAKE_REQUEST_LOGREADER
public static final HeaderType HANDSHAKE_RESPONSE_LOGREADER
public static final HeaderType DATA_LOGREADER
public static final HeaderType DATA_CLIENT
public static final HeaderType STATUS
public static final HeaderType STATUS_LOGREADER
public static HeaderType[] values()
for (HeaderType c : HeaderType.values()) System.out.println(c);
public static HeaderType valueOf(String name)
name - 要返回的枚举常量的名称。IllegalArgumentException - 如果该枚举类型没有带有指定名称的常量NullPointerException - 如果参数为空值public static HeaderType codeOf(int code)
code - The ordinal of this enumeration constant.public int code()
Copyright © 2024. All rights reserved.