org.fusesource.mqtt.codec
Class PUBREL

java.lang.Object
  extended by org.fusesource.mqtt.codec.MessageSupport.HeaderBase
      extended by org.fusesource.mqtt.codec.PUBREL
All Implemented Interfaces:
MessageSupport.Acked, MessageSupport.Message

public class PUBREL
extends MessageSupport.HeaderBase
implements MessageSupport.Message, MessageSupport.Acked

Author:
Hiram Chirino

Field Summary
static byte TYPE
           
 
Fields inherited from class org.fusesource.mqtt.codec.MessageSupport.HeaderBase
header
 
Constructor Summary
PUBREL()
           
 
Method Summary
 PUBREL decode(MQTTFrame frame)
           
 boolean dup()
           
 PUBREL dup(boolean dup)
           
 MQTTFrame encode()
           
 short messageId()
           
 PUBREL messageId(short messageId)
           
 byte messageType()
           
 QoS qos()
           
 java.lang.String toString()
           
 
Methods inherited from class org.fusesource.mqtt.codec.MessageSupport.HeaderBase
commandType, header, header, qos, retain, retain
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, wait, wait, wait
 

Field Detail

TYPE

public static final byte TYPE
See Also:
Constant Field Values
Constructor Detail

PUBREL

public PUBREL()
Method Detail

messageType

public byte messageType()
Specified by:
messageType in interface MessageSupport.Message
Overrides:
messageType in class MessageSupport.HeaderBase

decode

public PUBREL decode(MQTTFrame frame)
              throws java.net.ProtocolException
Specified by:
decode in interface MessageSupport.Message
Throws:
java.net.ProtocolException

encode

public MQTTFrame encode()
Specified by:
encode in interface MessageSupport.Message

dup

public boolean dup()
Specified by:
dup in interface MessageSupport.Acked
Overrides:
dup in class MessageSupport.HeaderBase

dup

public PUBREL dup(boolean dup)
Specified by:
dup in interface MessageSupport.Acked
Overrides:
dup in class MessageSupport.HeaderBase

qos

public QoS qos()
Specified by:
qos in interface MessageSupport.Acked
Overrides:
qos in class MessageSupport.HeaderBase

messageId

public short messageId()
Specified by:
messageId in interface MessageSupport.Acked

messageId

public PUBREL messageId(short messageId)
Specified by:
messageId in interface MessageSupport.Acked

toString

public java.lang.String toString()
Overrides:
toString in class java.lang.Object


Copyright © 2010-2012 FuseSource, Corp.. All Rights Reserved.