public enum MessagePriority extends Enum<MessagePriority>
Enum Constant and Description |
---|
HIGH
The message will be delivered at high priority.
|
LOW
The message will be delivered at low priority.
|
NORMAL
The message will be delivered at normal priority.
|
Modifier and Type | Method and Description |
---|---|
static MessagePriority |
valueOf(String name)
Returns the enum constant of this type with the specified name.
|
static MessagePriority[] |
values()
Returns an array containing the constants of this enum type, in
the order they are declared.
|
public static final MessagePriority LOW
public static final MessagePriority NORMAL
Messages sent at this priority will be queued for delivery after any
existing messages at the same priority which in turn are queued after any
messages sent at HIGH
priority. Messages queued at this priority
take precedence over those sent at LOW
priority. Messages
queued at this priority will only be considered for delivery when there
are no HIGH
priority messages queued for delivery.
public static final MessagePriority HIGH
public static MessagePriority[] values()
for (MessagePriority c : MessagePriority.values()) System.out.println(c);
public static MessagePriority 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 nullCopyright © 2016 Push Technology Ltd. All Rights Reserved.