public enum ClusterMessageType extends Enum<ClusterMessageType>
| Enum Constant and Description |
|---|
DATA
数据
|
FAILED
节点异常
|
JOIN
新节点加入
|
PING
心跳消息 ping
|
PONG
心跳回复消息 pong
|
RECONNECT
重连
|
SYNC
数据同步
|
SYNC_ACK
数据同步回复
|
| Modifier and Type | Method and Description |
|---|---|
static ClusterMessageType |
from(byte value)
Value of byte.
|
byte |
getType() |
static ClusterMessageType |
valueOf(String name)
Returns the enum constant of this type with the specified name.
|
static ClusterMessageType[] |
values()
Returns an array containing the constants of this enum type, in
the order they are declared.
|
public static final ClusterMessageType PING
public static final ClusterMessageType PONG
public static final ClusterMessageType JOIN
public static final ClusterMessageType RECONNECT
public static final ClusterMessageType FAILED
public static final ClusterMessageType DATA
public static final ClusterMessageType SYNC
public static final ClusterMessageType SYNC_ACK
public static ClusterMessageType[] values()
for (ClusterMessageType c : ClusterMessageType.values()) System.out.println(c);
public static ClusterMessageType valueOf(String name)
name - the name of the enum constant to be returned.IllegalArgumentException - if this enum type has no constant with the specified nameNullPointerException - if the argument is nullpublic byte getType()
public static ClusterMessageType from(byte value) throws TioDecodeException
value - integer valueTioDecodeException - Protocol decode exceptionCopyright © 2025. All rights reserved.