public abstract class AbstractMessage extends Object
| Modifier and Type | Class and Description |
|---|---|
static class |
AbstractMessage.QOSType |
| Modifier and Type | Field and Description |
|---|---|
static byte |
CONNACK |
static byte |
CONNECT |
static byte |
DISCONNECT |
protected boolean |
m_dupFlag |
protected byte |
m_messageType |
protected AbstractMessage.QOSType |
m_qos |
protected int |
m_remainingLength |
protected boolean |
m_retainFlag |
static byte |
PINGREQ |
static byte |
PINGRESP |
static byte |
PUBACK |
static byte |
PUBCOMP |
static byte |
PUBLISH |
static byte |
PUBREC |
static byte |
PUBREL |
static byte |
SUBACK |
static byte |
SUBSCRIBE |
static byte |
UNSUBACK |
static byte |
UNSUBSCRIBE |
| Constructor and Description |
|---|
AbstractMessage() |
| Modifier and Type | Method and Description |
|---|---|
byte |
getMessageType() |
AbstractMessage.QOSType |
getQos() |
int |
getRemainingLength()
TOBE used only internally
|
boolean |
isDupFlag() |
boolean |
isRetainFlag() |
void |
setDupFlag(boolean dupFlag) |
void |
setMessageType(byte messageType) |
void |
setQos(AbstractMessage.QOSType qos) |
void |
setRemainingLength(int remainingLength)
TOBE used only internally
|
void |
setRetainFlag(boolean retainFlag) |
public static final byte CONNECT
public static final byte CONNACK
public static final byte PUBLISH
public static final byte PUBACK
public static final byte PUBREC
public static final byte PUBREL
public static final byte PUBCOMP
public static final byte SUBSCRIBE
public static final byte SUBACK
public static final byte UNSUBSCRIBE
public static final byte UNSUBACK
public static final byte PINGREQ
public static final byte PINGRESP
public static final byte DISCONNECT
protected boolean m_dupFlag
protected AbstractMessage.QOSType m_qos
protected boolean m_retainFlag
protected int m_remainingLength
protected byte m_messageType
public byte getMessageType()
public void setMessageType(byte messageType)
public boolean isDupFlag()
public void setDupFlag(boolean dupFlag)
public AbstractMessage.QOSType getQos()
public void setQos(AbstractMessage.QOSType qos)
public boolean isRetainFlag()
public void setRetainFlag(boolean retainFlag)
public int getRemainingLength()
public void setRemainingLength(int remainingLength)
Copyright © 2016. All rights reserved.