org.fusesource.mqtt.codec
Class UNSUBSCRIBE
java.lang.Object
org.fusesource.mqtt.codec.MessageSupport.HeaderBase
org.fusesource.mqtt.codec.UNSUBSCRIBE
- All Implemented Interfaces:
- MessageSupport.Acked, MessageSupport.Message
public class UNSUBSCRIBE
- extends MessageSupport.HeaderBase
- implements MessageSupport.Message, MessageSupport.Acked
- Author:
- Hiram Chirino
|
Field Summary |
static org.fusesource.hawtbuf.UTF8Buffer[] |
NO_TOPICS
|
static byte |
TYPE
|
| Methods inherited from class java.lang.Object |
clone, equals, finalize, getClass, hashCode, notify, notifyAll, wait, wait, wait |
TYPE
public static final byte TYPE
- See Also:
- Constant Field Values
NO_TOPICS
public static final org.fusesource.hawtbuf.UTF8Buffer[] NO_TOPICS
UNSUBSCRIBE
public UNSUBSCRIBE()
messageType
public byte messageType()
- Specified by:
messageType in interface MessageSupport.Message- Overrides:
messageType in class MessageSupport.HeaderBase
decode
public UNSUBSCRIBE 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 UNSUBSCRIBE 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 UNSUBSCRIBE messageId(short messageId)
- Specified by:
messageId in interface MessageSupport.Acked
topics
public org.fusesource.hawtbuf.UTF8Buffer[] topics()
topics
public UNSUBSCRIBE topics(org.fusesource.hawtbuf.UTF8Buffer[] topics)
toString
public java.lang.String toString()
- Overrides:
toString in class java.lang.Object
Copyright © 2010-2012 FuseSource, Corp.. All Rights Reserved.