net.sf.xenqtt.message
Class PubCompMessage

java.lang.Object
  extended by net.sf.xenqtt.message.MqttMessage
      extended by net.sf.xenqtt.message.IdentifiableMqttMessage
          extended by net.sf.xenqtt.message.PubCompMessage

public final class PubCompMessage
extends IdentifiableMqttMessage

This message is either the response from the server to a PUBREL message from a publisher, or the response from a subscriber to a PUBREL message from the server. It is the fourth and last message in the QoS 2 protocol flow.


Constructor Summary
PubCompMessage(ByteBuffer buffer, long receivedTimestamp)
          Used to construct a received message.
PubCompMessage(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, getReceivedTimestamp, 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

PubCompMessage

public PubCompMessage(ByteBuffer buffer,
                      long receivedTimestamp)
Used to construct a received message.


PubCompMessage

public PubCompMessage(int messageId)
Used to construct a message for sending



Copyright © 2013. All Rights Reserved.