-
- All Implemented Interfaces:
-
org.eclipse.paho.client.mqttv3.IMqttDeliveryToken,org.eclipse.paho.client.mqttv3.IMqttToken,org.eclipse.paho.client.mqttv3.IToken
public class MqttDeliveryToken extends MqttToken implements IMqttDeliveryToken
Provides a mechanism to track the delivery progress of a message.
Used to track the the delivery progress of a message when a publish is executed in a non-blocking manner (run in the background)
-
-
Constructor Summary
Constructors Constructor Description MqttDeliveryToken()MqttDeliveryToken(String logContext)
-
Method Summary
Modifier and Type Method Description MqttMessagegetMessage()Returns the message associated with this token. -
Methods inherited from class org.eclipse.paho.client.mqttv3.MqttToken
getActionCallback, getClient, getException, getMessageId, getTopics, getUserContext, isComplete, setActionCallback, setUserContext, waitForCompletion, waitForCompletion -
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
-
-
Constructor Detail
-
MqttDeliveryToken
MqttDeliveryToken()
-
MqttDeliveryToken
MqttDeliveryToken(String logContext)
-
-
Method Detail
-
getMessage
MqttMessage getMessage()
Returns the message associated with this token.
Until the message has been delivered, the message being delivered will be returned. Once the message has been delivered
nullwill be returned.
-
-
-
-