net.sf.xenqtt.message
Class PubRecMessage
java.lang.Object
net.sf.xenqtt.message.MqttMessage
net.sf.xenqtt.message.IdentifiableMqttMessage
net.sf.xenqtt.message.PubRecMessage
public final class PubRecMessage
- extends IdentifiableMqttMessage
A PUBREC message is the response to a PUBLISH message with QoS level 2. It is the second message of the QoS level 2 protocol flow. A PUBREC message is sent
by the server in response to a PUBLISH message from a publishing client, or by a subscriber in response to a PUBLISH message from the server.
When it receives a PUBREC message, the recipient sends a PUBREL message to the sender with the same Message ID as the PUBREC message.
Methods inherited from class net.sf.xenqtt.message.MqttMessage |
byteBufferToHex, bytesToHex, equals, getMessageType, getQoS, getQoSLevel, getRemainingLength, isAck, isAckable, isDuplicate, isRetain, setDuplicateFlag, toString |
PubRecMessage
public PubRecMessage(ByteBuffer buffer)
- Used to construct a received message.
PubRecMessage
public PubRecMessage(int messageId)
- Used to construct a message for sending
Copyright © 2013. All Rights Reserved.