枚举 MessageType
- java.lang.Object
-
- java.lang.Enum<MessageType>
-
- network.nerve.core.rpc.model.message.MessageType
-
- 所有已实现的接口:
Serializable,Comparable<MessageType>
public enum MessageType extends Enum<MessageType>
消息类型 Message types- 作者:
- tangyi
-
-
枚举常量概要
枚举常量 枚举常量 说明 Ack确认收到消息 / Confirm receipt of messageNegotiateConnection握手 / HandshakeNegotiateConnectionResponse握手确认 / Handshake confirmNotification通知 / NotificationRegisterCompoundMethod批量订阅 / Batch requestRequest请求 / RequestRequestOnly请求不关心返回 / Request does not care about returnResponse回复 / ResponseUnregisterCompoundMethod取消批量订阅 / Batch unsubscribeUnsubscribe取消订阅 / Unsubscribe
-
-
-
枚举常量详细资料
-
NegotiateConnection
public static final MessageType NegotiateConnection
握手 / Handshake
-
NegotiateConnectionResponse
public static final MessageType NegotiateConnectionResponse
握手确认 / Handshake confirm
-
Request
public static final MessageType Request
请求 / Request
-
RequestOnly
public static final MessageType RequestOnly
请求不关心返回 / Request does not care about return
-
Response
public static final MessageType Response
回复 / Response
-
Unsubscribe
public static final MessageType Unsubscribe
取消订阅 / Unsubscribe
-
Ack
public static final MessageType Ack
确认收到消息 / Confirm receipt of message
-
Notification
public static final MessageType Notification
通知 / Notification
-
RegisterCompoundMethod
public static final MessageType RegisterCompoundMethod
批量订阅 / Batch request
-
UnregisterCompoundMethod
public static final MessageType UnregisterCompoundMethod
取消批量订阅 / Batch unsubscribe
-
-
方法详细资料
-
values
public static MessageType[] values()
按照声明该枚举类型的常量的顺序, 返回 包含这些常量的数组。该方法可用于迭代 常量, 如下所示:for (MessageType c : MessageType.values()) System.out.println(c);
- 返回:
- 按照声明该枚举类型的常量的顺序返回的包含这些常量的数组
-
valueOf
public static MessageType valueOf(String name)
返回带有指定名称的该类型的枚举常量。 字符串必须与用于声明该类型的枚举常量的 标识符完全匹配。(不允许有多余 的空格字符。)- 参数:
name- 要返回的枚举常量的名称。- 返回:
- 返回带有指定名称的枚举常量
- 抛出:
IllegalArgumentException- 如果该枚举类型没有带有指定名称的常量NullPointerException- 如果参数为空值
-
-