public enum TrafficClass extends Enum<TrafficClass>
DatagramSocket.setTrafficClass(int)| Enum Constant and 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 and Description |
|---|---|
int |
getValue() |
static TrafficClass |
valueOf(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(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 getValue()