org.fusesource.mqtt.codec
Class CONNECT
java.lang.Object
org.fusesource.mqtt.codec.CONNECT
- All Implemented Interfaces:
- MessageSupport.Message
public class CONNECT
- extends java.lang.Object
- implements MessageSupport.Message
- Author:
- Hiram Chirino
Field Summary |
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
CONNECT
public CONNECT()
CONNECT
public CONNECT(CONNECT other)
messageType
public byte messageType()
- Specified by:
messageType
in interface MessageSupport.Message
decode
public CONNECT 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
cleanSession
public boolean cleanSession()
cleanSession
public CONNECT cleanSession(boolean cleanSession)
clientId
public org.fusesource.hawtbuf.UTF8Buffer clientId()
clientId
public CONNECT clientId(org.fusesource.hawtbuf.UTF8Buffer clientId)
keepAlive
public short keepAlive()
keepAlive
public CONNECT keepAlive(short keepAlive)
password
public org.fusesource.hawtbuf.UTF8Buffer password()
password
public CONNECT password(org.fusesource.hawtbuf.UTF8Buffer password)
userName
public org.fusesource.hawtbuf.UTF8Buffer userName()
userName
public CONNECT userName(org.fusesource.hawtbuf.UTF8Buffer userName)
willMessage
public org.fusesource.hawtbuf.UTF8Buffer willMessage()
willMessage
public CONNECT willMessage(org.fusesource.hawtbuf.UTF8Buffer willMessage)
willQos
public QoS willQos()
willQos
public CONNECT willQos(QoS willQos)
willRetain
public boolean willRetain()
willRetain
public CONNECT willRetain(boolean willRetain)
willTopic
public org.fusesource.hawtbuf.UTF8Buffer willTopic()
willTopic
public CONNECT willTopic(org.fusesource.hawtbuf.UTF8Buffer willTopic)
version
public int version()
version
public CONNECT version(int version)
toString
public java.lang.String toString()
- Overrides:
toString
in class java.lang.Object
Copyright © 2010-2012 FuseSource, Corp.. All Rights Reserved.