Interface Mqtt5ReasonCode
- All Known Implementing Classes:
Mqtt5AuthReasonCode,Mqtt5ConnAckReasonCode,Mqtt5DisconnectReasonCode,Mqtt5PubAckReasonCode,Mqtt5PubCompReasonCode,Mqtt5PubRecReasonCode,Mqtt5PubRelReasonCode,Mqtt5SubAckReasonCode,Mqtt5UnsubAckReasonCode
Reason Code according to the MQTT 5 specification.
- Since:
- 1.0
-
Method Details
-
getCode
int getCode()- Returns:
- the byte code of this Reason Code.
-
isError
default boolean isError()- Returns:
- whether this Reason Code is an Error Code.
-
canBeSentByServer
default boolean canBeSentByServer()- Returns:
- whether this Reason Code can be sent by the server according to the MQTT 5 specification.
-
canBeSentByClient
default boolean canBeSentByClient()- Returns:
- whether this Reason Code can be sent by the client according to the MQTT 5 specification.
-
canBeSetByUser
default boolean canBeSetByUser()- Returns:
- whether this Reason Code can be set by the user.
-