public static enum MqttAndroidClient.Ack extends java.lang.Enum<MqttAndroidClient.Ack>
MqttCallback.messageArrived(String, MqttMessage)
Enum Constant and Description |
---|
AUTO_ACK
As soon as the
MqttCallback.messageArrived(String, MqttMessage) returns
the message has been acknowledged as received . |
MANUAL_ACK
When
MqttCallback.messageArrived(String, MqttMessage) returns the message
will not be acknowledged as received, the application will have to make an acknowledgment call
to MqttAndroidClient using MqttAndroidClient.acknowledgeMessage(String) |
Modifier and Type | Method and Description |
---|---|
static MqttAndroidClient.Ack |
valueOf(java.lang.String name)
Returns the enum constant of this type with the specified name.
|
static MqttAndroidClient.Ack[] |
values()
Returns an array containing the constants of this enum type, in
the order they are declared.
|
public static final MqttAndroidClient.Ack AUTO_ACK
MqttCallback.messageArrived(String, MqttMessage)
returns
the message has been acknowledged as received .public static final MqttAndroidClient.Ack MANUAL_ACK
MqttCallback.messageArrived(String, MqttMessage)
returns the message
will not be acknowledged as received, the application will have to make an acknowledgment call
to MqttAndroidClient
using MqttAndroidClient.acknowledgeMessage(String)
public static MqttAndroidClient.Ack[] values()
for (MqttAndroidClient.Ack c : MqttAndroidClient.Ack.values()) System.out.println(c);
public static MqttAndroidClient.Ack valueOf(java.lang.String name)
name
- the name of the enum constant to be returned.java.lang.IllegalArgumentException
- if this enum type has no constant
with the specified namejava.lang.NullPointerException
- if the argument is null