public enum PacketPriority extends Enum<PacketPriority>
Enum Constant and Description |
---|
CONTROL
High priority for control traffic.
|
HIGH |
HIGH1 |
HIGH2 |
HIGH3 |
HIGH4 |
HIGH5 |
LOWEST |
MAX
Other choices for applications.
|
MEDIUM |
REACTIVE
Low priority for reactive applications.
|
Modifier and Type | Method and Description |
---|---|
int |
priorityValue()
Returns the integer value of the priority level.
|
String |
toString() |
static PacketPriority |
valueOf(String name)
Returns the enum constant of this type with the specified name.
|
static PacketPriority[] |
values()
Returns an array containing the constants of this enum type, in
the order they are declared.
|
public static final PacketPriority CONTROL
public static final PacketPriority REACTIVE
public static final PacketPriority MAX
public static final PacketPriority HIGH5
public static final PacketPriority HIGH4
public static final PacketPriority HIGH3
public static final PacketPriority HIGH2
public static final PacketPriority HIGH1
public static final PacketPriority HIGH
public static final PacketPriority MEDIUM
public static final PacketPriority LOWEST
public static PacketPriority[] values()
for (PacketPriority c : PacketPriority.values()) System.out.println(c);
public static PacketPriority 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 priorityValue()
public String toString()
toString
in class Enum<PacketPriority>