public static enum MqttSubscriptionOption.RetainedHandlingPolicy extends java.lang.Enum<MqttSubscriptionOption.RetainedHandlingPolicy>
枚举常量和说明 |
---|
DONT_SEND_AT_SUBSCRIBE |
SEND_AT_SUBSCRIBE |
SEND_AT_SUBSCRIBE_IF_NOT_YET_EXISTS |
限定符和类型 | 方法和说明 |
---|---|
int |
value() |
static MqttSubscriptionOption.RetainedHandlingPolicy |
valueOf(int value) |
static MqttSubscriptionOption.RetainedHandlingPolicy |
valueOf(java.lang.String name)
返回带有指定名称的该类型的枚举常量。
|
static MqttSubscriptionOption.RetainedHandlingPolicy[] |
values()
按照声明该枚举类型的常量的顺序, 返回
包含这些常量的数组。
|
public static final MqttSubscriptionOption.RetainedHandlingPolicy SEND_AT_SUBSCRIBE
public static final MqttSubscriptionOption.RetainedHandlingPolicy SEND_AT_SUBSCRIBE_IF_NOT_YET_EXISTS
public static final MqttSubscriptionOption.RetainedHandlingPolicy DONT_SEND_AT_SUBSCRIBE
public static MqttSubscriptionOption.RetainedHandlingPolicy[] values()
for (MqttSubscriptionOption.RetainedHandlingPolicy c : MqttSubscriptionOption.RetainedHandlingPolicy.values()) System.out.println(c);
public static MqttSubscriptionOption.RetainedHandlingPolicy valueOf(java.lang.String name)
name
- 要返回的枚举常量的名称。java.lang.IllegalArgumentException
- 如果该枚举类型没有带有指定名称的常量java.lang.NullPointerException
- 如果参数为空值public int value()
public static MqttSubscriptionOption.RetainedHandlingPolicy valueOf(int value)