public static enum Transport.Type extends Enum<Transport.Type>
| Enum Constant and Description |
|---|
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.
|
| Modifier and Type | Method and Description |
|---|---|
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.
|
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
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 nameNullPointerException - if the argument is nullpublic boolean isReliable()
public boolean isOrdered()
public abstract Transport.Type combine(Transport.Type other)
Copyright © 2015. All rights reserved.