Package io.vertx.mqtt.messages
Interface MqttConnAckMessage
-
public interface MqttConnAckMessage
Represents an MQTT CONNACK message
-
-
Method Summary
All Methods Static Methods Instance Methods Abstract Methods Modifier and Type Method Description MqttConnectReturnCode
code()
static MqttConnAckMessage
create(MqttConnectReturnCode code, boolean isSessionPresent)
Create a concrete instance of a Vert.x connack messagestatic MqttConnAckMessage
create(MqttConnectReturnCode code, boolean isSessionPresent, MqttProperties properties)
Create a concrete instance of a Vert.x connack messageboolean
isSessionPresent()
MqttProperties
properties()
-
-
-
Method Detail
-
create
static MqttConnAckMessage create(MqttConnectReturnCode code, boolean isSessionPresent)
Create a concrete instance of a Vert.x connack message- Parameters:
code
- return code from the connection requestisSessionPresent
- is an old session is present- Returns:
-
create
static MqttConnAckMessage create(MqttConnectReturnCode code, boolean isSessionPresent, MqttProperties properties)
Create a concrete instance of a Vert.x connack message- Parameters:
code
- return code from the connection requestisSessionPresent
- is an old session is presentproperties
- MQTT properties- Returns:
-
code
MqttConnectReturnCode code()
- Returns:
- return code from the connection request
-
isSessionPresent
boolean isSessionPresent()
- Returns:
- is an old session is present
-
properties
MqttProperties properties()
-
-