java.io.Serializable, java.lang.Comparable<TrafficClass>public enum TrafficClass extends java.lang.Enum<TrafficClass>
DatagramSocket.setTrafficClass(int)| Enum Constant | Description |
|---|---|
MAXIMIZE_RELIABILITY |
Traffic class maximizing reliability.
|
MAXIMIZE_THROUGHPUT |
Traffic class maximizing throughput.
|
MINIMIZE_DELAY |
Traffic class minimizing delay.
|
MINIMIZE_MONETARY_COST |
Traffic class minimizing monetary cost.
|
NORMAL_SERVICE |
Traffic class of normal service.
|
| Modifier and Type | Method | Description |
|---|---|---|
int |
getValue() |
|
static TrafficClass |
valueOf(java.lang.String name) |
Returns the enum constant of this type with the specified name.
|
static TrafficClass[] |
values() |
Returns an array containing the constants of this enum type, in
the order they are declared.
|
public static final TrafficClass MAXIMIZE_RELIABILITY
public static final TrafficClass MAXIMIZE_THROUGHPUT
public static final TrafficClass MINIMIZE_DELAY
public static final TrafficClass MINIMIZE_MONETARY_COST
public static final TrafficClass NORMAL_SERVICE
public static TrafficClass[] values()
for (TrafficClass c : TrafficClass.values()) System.out.println(c);
public static TrafficClass valueOf(java.lang.String name)
name - the name of the enum constant to be returned.java.lang.IllegalArgumentException - if this enum type has no constant with the specified namejava.lang.NullPointerException - if the argument is nullpublic int getValue()