Enum Constant and Description |
---|
AT_LEAST_ONCE |
AT_MOST_ONCE |
EXACTLY_ONCE |
FAILURE |
Modifier and Type | Method and Description |
---|---|
int |
value() |
static MqttQoS |
valueOf(int value) |
static MqttQoS |
valueOf(java.lang.String name)
以指定名称返回此类型的枚举常量。
|
static MqttQoS[] |
values()
按照声明的顺序返回包含此枚举类型常量的数组。
|
public static final MqttQoS AT_MOST_ONCE
public static final MqttQoS AT_LEAST_ONCE
public static final MqttQoS EXACTLY_ONCE
public static final MqttQoS FAILURE
public static MqttQoS[] values()
for (MqttQoS c : MqttQoS.values())
System.out.println(c);
public static MqttQoS valueOf(java.lang.String name)
name
- 要返回的枚举常量的名称。
java.lang.IllegalArgumentException
- 如果此枚举类型没有指定名称的常量
java.lang.NullPointerException
- 如果参数为null
public int value()
public static MqttQoS valueOf(int value)
Copyright © 2008–2018 The Netty Project. All rights reserved.