public static enum DeliveryGuaranty.DeliveryGuarantyOptions extends Enum<DeliveryGuaranty.DeliveryGuarantyOptions> implements DeliveryGuaranty
DeliveryGuaranty
. Used to
abstract out the TCP and UDP transports.DeliveryGuaranty.DeliveryGuarantyOptions
Modifier and Type | Field and Description |
---|---|
(package private) int |
guaranty |
Modifier and Type | Method and Description |
---|---|
int |
getGuaranty()
Return the associated integer guaranty constant.
|
static DeliveryGuaranty.DeliveryGuarantyOptions |
valueOf(String name)
Returns the enum constant of this type with the specified name.
|
static DeliveryGuaranty.DeliveryGuarantyOptions[] |
values()
Returns an array containing the constants of this enum type, in
the order they are declared.
|
public static final DeliveryGuaranty.DeliveryGuarantyOptions RELIABLE
public static final DeliveryGuaranty.DeliveryGuarantyOptions FAST
public static DeliveryGuaranty.DeliveryGuarantyOptions[] values()
for (DeliveryGuaranty.DeliveryGuarantyOptions c : DeliveryGuaranty.DeliveryGuarantyOptions.values()) System.out.println(c);
public static DeliveryGuaranty.DeliveryGuarantyOptions 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 getGuaranty()
DeliveryGuaranty
getGuaranty
in interface DeliveryGuaranty
Copyright © 2012. All Rights Reserved.