public enum MessageType extends Enum<MessageType>
| 枚举常量和说明 |
|---|
Ack
确认收到消息 / Confirm receipt of message
|
NegotiateConnection
握手 / Handshake
|
NegotiateConnectionResponse
握手确认 / Handshake confirm
|
Notification
通知 / Notification
|
RegisterCompoundMethod
批量订阅 / Batch request
|
Request
请求 / Request
|
RequestOnly
请求不关心返回 / Request does not care about return
|
Response
回复 / Response
|
UnregisterCompoundMethod
取消批量订阅 / Batch unsubscribe
|
Unsubscribe
取消订阅 / Unsubscribe
|
public static final MessageType NegotiateConnection
public static final MessageType NegotiateConnectionResponse
public static final MessageType Request
public static final MessageType RequestOnly
public static final MessageType Response
public static final MessageType Unsubscribe
public static final MessageType Ack
public static final MessageType Notification
public static final MessageType RegisterCompoundMethod
public static final MessageType UnregisterCompoundMethod
public static MessageType[] values()
for (MessageType c : MessageType.values()) System.out.println(c);
public static MessageType valueOf(String name)
name - 要返回的枚举常量的名称。IllegalArgumentException - 如果该枚举类型没有带有指定名称的常量NullPointerException - 如果参数为空值Copyright © 2021. All rights reserved.