public enum EmqxTopicType extends Enum<EmqxTopicType>
| 枚举常量和说明 |
|---|
EMQX_APP_PUH_CHANNEL
发布消息通道
|
EMQX_APP_SUB_CHANNEL
接收消息通道
|
| 限定符和类型 | 方法和说明 |
|---|---|
String |
getChannelDesc() |
Integer |
getChannelId() |
static EmqxTopicType |
getEmqxChannelTypeByChannelId(Integer channelId)
获取emqx 通信渠道枚举
|
static EmqxTopicType |
valueOf(String name)
返回带有指定名称的该类型的枚举常量。
|
static EmqxTopicType[] |
values()
按照声明该枚举类型的常量的顺序, 返回
包含这些常量的数组。
|
public static final EmqxTopicType EMQX_APP_PUH_CHANNEL
public static final EmqxTopicType EMQX_APP_SUB_CHANNEL
public static EmqxTopicType[] values()
for (EmqxTopicType c : EmqxTopicType.values()) System.out.println(c);
public static EmqxTopicType valueOf(String name)
name - 要返回的枚举常量的名称。IllegalArgumentException - 如果该枚举类型没有带有指定名称的常量NullPointerException - 如果参数为空值public Integer getChannelId()
public String getChannelDesc()
public static EmqxTopicType getEmqxChannelTypeByChannelId(Integer channelId) throws EnumException
channelId - emqx通信渠道idEnumExceptionCopyright © 2023. All rights reserved.