net.sf.xenqtt.message
Class PubRecMessage

java.lang.Object
  extended by net.sf.xenqtt.message.MqttMessage
      extended by net.sf.xenqtt.message.IdentifiableMqttMessage
          extended by 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.


Constructor Summary
PubRecMessage(ByteBuffer buffer)
          Used to construct a received message.
PubRecMessage(int messageId)
          Used to construct a message for sending
 
Method Summary
 
Methods inherited from class net.sf.xenqtt.message.IdentifiableMqttMessage
getMessageId, setMessageId
 
Methods inherited from class net.sf.xenqtt.message.MqttMessage
byteBufferToHex, bytesToHex, equals, getMessageType, getQoS, getQoSLevel, getRemainingLength, isAck, isAckable, isDuplicate, isRetain, setDuplicateFlag, toString
 
Methods inherited from class java.lang.Object
clone, finalize, getClass, hashCode, notify, notifyAll, wait, wait, wait
 

Constructor Detail

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.