public class MqttDeliveryToken extends MqttToken implements IMqttDeliveryToken
Used to track the the delivery progress of a message when a publish is executed in a non-blocking manner (run in the background)
MqttTokeninternalTok| Constructor and Description |
|---|
MqttDeliveryToken() |
MqttDeliveryToken(String logContext) |
| Modifier and Type | Method and Description |
|---|---|
MqttMessage |
getMessage()
Returns the message associated with this token.
|
protected void |
setMessage(MqttMessage msg) |
getActionCallback, getClient, getException, getGrantedQos, getMessageId, getResponse, getSessionPresent, getTopics, getUserContext, isComplete, setActionCallback, setUserContext, waitForCompletion, waitForCompletionclone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, waitgetActionCallback, getClient, getException, getGrantedQos, getMessageId, getResponse, getSessionPresent, getTopics, getUserContext, isComplete, setActionCallback, setUserContext, waitForCompletion, waitForCompletionpublic MqttDeliveryToken()
public MqttDeliveryToken(String logContext)
public MqttMessage getMessage() throws MqttException
Until the message has been delivered, the message being delivered will
be returned. Once the message has been delivered null will be
returned.
getMessage in interface IMqttDeliveryTokenMqttException - if there was a problem completing retrieving the messageprotected void setMessage(MqttMessage msg)
Copyright © 2017 Eclipse Paho. All Rights Reserved.