org.fusesource.mqtt.codec
Class SUBACK

java.lang.Object
  extended by org.fusesource.mqtt.codec.SUBACK
All Implemented Interfaces:
MessageSupport.Message

public class SUBACK
extends java.lang.Object
implements MessageSupport.Message

Author:
Hiram Chirino

Field Summary
static byte[] NO_GRANTED_QOS
           
static byte TYPE
           
 
Constructor Summary
SUBACK()
           
 
Method Summary
 SUBACK decode(MQTTFrame frame)
           
 MQTTFrame encode()
           
 byte[] grantedQos()
           
 SUBACK grantedQos(byte[] grantedQos)
           
 short messageId()
           
 SUBACK messageId(short messageId)
           
 byte messageType()
           
 java.lang.String toString()
           
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, wait, wait, wait
 

Field Detail

NO_GRANTED_QOS

public static final byte[] NO_GRANTED_QOS

TYPE

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

SUBACK

public SUBACK()
Method Detail

messageType

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

decode

public SUBACK 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

grantedQos

public byte[] grantedQos()

grantedQos

public SUBACK grantedQos(byte[] grantedQos)

messageId

public short messageId()

messageId

public SUBACK messageId(short messageId)

toString

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


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