|
|||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||
| SUMMARY: NESTED | ENUM CONSTANTS | FIELD | METHOD | DETAIL: ENUM CONSTANTS | FIELD | METHOD | ||||||||
java.lang.Objectjava.lang.Enum<Transport.Type>
com.threerings.presents.net.Transport.Type
public static enum Transport.Type
The available types of transport.
| Enum Constant Summary | |
|---|---|
RELIABLE_ORDERED
Messages are guaranteed to arrive, and will arrive in the order in which they are sent. |
|
RELIABLE_UNORDERED
Messages are guaranteed to arrive eventually, but they are not guaranteed to arrive in order. |
|
UNRELIABLE_ORDERED
Messages are not guaranteed to arrive, but if they do arrive, then they will arrive in order and without duplicates. |
|
UNRELIABLE_UNORDERED
Messages are neither guaranteed to arrive nor, if they do arrive, to arrive in order and without duplicates. |
|
| Field Summary | |
|---|---|
protected boolean |
_ordered
|
protected boolean |
_reliable
|
| Method Summary | |
|---|---|
abstract Transport.Type |
combine(Transport.Type other)
Returns a transport type that combines the requirements of this type with those of the specified other type. |
boolean |
isOrdered()
Checks whether this transport type guarantees that messages will be received in the order in which they were sent, if they are received at all. |
boolean |
isReliable()
Checks whether this transport type guarantees that messages will be delivered. |
static Transport.Type |
valueOf(String name)
Returns the enum constant of this type with the specified name. |
static Transport.Type[] |
values()
Returns an array containing the constants of this enum type, in the order they are declared. |
| Methods inherited from class java.lang.Enum |
|---|
clone, compareTo, equals, finalize, getDeclaringClass, hashCode, name, ordinal, toString, valueOf |
| Methods inherited from class java.lang.Object |
|---|
getClass, notify, notifyAll, wait, wait, wait |
| Enum Constant Detail |
|---|
public static final Transport.Type UNRELIABLE_UNORDERED
public static final Transport.Type UNRELIABLE_ORDERED
public static final Transport.Type RELIABLE_UNORDERED
public static final Transport.Type RELIABLE_ORDERED
| Field Detail |
|---|
protected boolean _reliable
protected boolean _ordered
| Method Detail |
|---|
public static Transport.Type[] values()
for (Transport.Type c : Transport.Type.values()) System.out.println(c);
public static Transport.Type valueOf(String name)
name - the name of the enum constant to be returned.
IllegalArgumentException - if this enum type has no constant
with the specified name
NullPointerException - if the argument is nullpublic boolean isReliable()
public boolean isOrdered()
public abstract Transport.Type combine(Transport.Type other)
|
|||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||
| SUMMARY: NESTED | ENUM CONSTANTS | FIELD | METHOD | DETAIL: ENUM CONSTANTS | FIELD | METHOD | ||||||||