public enum MqttPubAckReasonCode extends Enum<MqttPubAckReasonCode> implements MqttReasonCode
Enum Constant and Description |
---|
IMPLEMENTATION_SPECIFIC_ERROR |
NO_MATCHING_SUBSCRIBERS |
NOT_AUTHORIZED |
PACKET_IDENTIFIER_IN_USE |
PAYLOAD_FORMAT_INVALID |
QUOTA_EXCEEDED |
SUCCESS |
TOPIC_NAME_INVALID |
UNSPECIFIED_ERROR |
Modifier and Type | Method and Description |
---|---|
boolean |
isError() |
byte |
value() |
static MqttPubAckReasonCode |
valueOf(byte b) |
static MqttPubAckReasonCode |
valueOf(String name)
Returns the enum constant of this type with the specified name.
|
static MqttPubAckReasonCode[] |
values()
Returns an array containing the constants of this enum type, in
the order they are declared.
|
public static final MqttPubAckReasonCode SUCCESS
public static final MqttPubAckReasonCode NO_MATCHING_SUBSCRIBERS
public static final MqttPubAckReasonCode UNSPECIFIED_ERROR
public static final MqttPubAckReasonCode IMPLEMENTATION_SPECIFIC_ERROR
public static final MqttPubAckReasonCode NOT_AUTHORIZED
public static final MqttPubAckReasonCode TOPIC_NAME_INVALID
public static final MqttPubAckReasonCode PACKET_IDENTIFIER_IN_USE
public static final MqttPubAckReasonCode QUOTA_EXCEEDED
public static final MqttPubAckReasonCode PAYLOAD_FORMAT_INVALID
public static MqttPubAckReasonCode[] values()
for (MqttPubAckReasonCode c : MqttPubAckReasonCode.values()) System.out.println(c);
public static MqttPubAckReasonCode valueOf(String name)
name
- the name of the enum constant to be returned.IllegalArgumentException
- if this enum type has no constant with the specified nameNullPointerException
- if the argument is nullpublic static MqttPubAckReasonCode valueOf(byte b)
public byte value()
value
in interface MqttReasonCode
public boolean isError()
isError
in interface MqttReasonCode
Copyright © 2023 Eclipse. All rights reserved.