public static enum MigratoryDataMessage.QoS extends Enum<MigratoryDataMessage.QoS>
| Enum Constant and Description |
|---|
GUARANTEED
The
QoS.GUARANTEED should be used for critical messages which will be included in the cache of
the MigratoryData cluster. |
STANDARD
The
QoS.STANDARD should be used for noncritical messages which will not be included in the cache
of the MigratoryData cluster. |
| Modifier and Type | Method and Description |
|---|---|
int |
code() |
static MigratoryDataMessage.QoS |
valueOf(String name)
Returns the enum constant of this type with the specified name.
|
static MigratoryDataMessage.QoS[] |
values()
Returns an array containing the constants of this enum type, in
the order they are declared.
|
public static final MigratoryDataMessage.QoS STANDARD
QoS.STANDARD should be used for noncritical messages which will not be included in the cache
of the MigratoryData cluster. In this way, after a connection recovery, a client will not receive as part of
the recovery process the messages with QoS.STANDARD.
<p>
Note: This QoS level corresponds to the at-most-once delivery semantics.
</p>public static final MigratoryDataMessage.QoS GUARANTEED
QoS.GUARANTEED should be used for critical messages which will be included in the cache of
the MigratoryData cluster. In this way, after a connection recovery, a client will receive as part of the
recovery process the messages with QoS.GUARANTEED.
<p>
Note: This QoS level corresponds to the at-least-once delivery semantics. Also, it might
correspond to the exactly-once delivery semantics provided that subscribers are responsible
for filtering out duplicate receptions, if it at all matters for the application. Typically, a small
buffer containing the identifiers of recently-received messages is sufficient for this task.
</p>public static MigratoryDataMessage.QoS[] values()
for (MigratoryDataMessage.QoS c : MigratoryDataMessage.QoS.values()) System.out.println(c);
public static MigratoryDataMessage.QoS 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 code()
Copyright © 2024. All rights reserved.