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)
MqttToken
internalTok
Constructor and Description |
---|
MqttDeliveryToken() |
MqttDeliveryToken(java.lang.String logContext) |
Modifier and Type | Method and Description |
---|---|
MqttMessage |
getMessage()
Returns the message associated with this token.
|
getActionCallback, getClient, getException, getGrantedQos, getMessageId, getResponse, getSessionPresent, getTopics, getUserContext, isComplete, setActionCallback, setUserContext, waitForCompletion, waitForCompletion
equals, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
getActionCallback, getClient, getException, getGrantedQos, getMessageId, getResponse, getSessionPresent, getTopics, getUserContext, isComplete, setActionCallback, setUserContext, waitForCompletion, waitForCompletion
public MqttDeliveryToken()
public MqttDeliveryToken(java.lang.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 IMqttDeliveryToken
MqttException
- if there was a problem completing retrieving the message