public enum Mqtt5RetainHandling extends Enum<Mqtt5RetainHandling>
Enum Constant and Description |
---|
DO_NOT_SEND
Do not send retained messages for the current subscription.
|
SEND
Send retained messages for the current subscription.
|
SEND_IF_SUBSCRIPTION_DOES_NOT_EXIST
Send retained messages for the current subscription only if the subscription does not currently exist.
|
Modifier and Type | Method and Description |
---|---|
static @Nullable Mqtt5RetainHandling |
fromCode(int code)
Returns the Retain Handling belonging to the given byte code.
|
int |
getCode() |
static Mqtt5RetainHandling |
valueOf(String name)
Returns the enum constant of this type with the specified name.
|
static Mqtt5RetainHandling[] |
values()
Returns an array containing the constants of this enum type, in
the order they are declared.
|
public static final Mqtt5RetainHandling SEND
public static final Mqtt5RetainHandling SEND_IF_SUBSCRIPTION_DOES_NOT_EXIST
public static final Mqtt5RetainHandling DO_NOT_SEND
public static Mqtt5RetainHandling[] values()
for (Mqtt5RetainHandling c : Mqtt5RetainHandling.values()) System.out.println(c);
public static Mqtt5RetainHandling 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 int getCode()
@Nullable public static @Nullable Mqtt5RetainHandling fromCode(int code)
code
- the byte code.