|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | ENUM CONSTANTS | FIELD | METHOD | DETAIL: ENUM CONSTANTS | FIELD | METHOD |
java.lang.Objectjava.lang.Enum<Delivery>
com.sun.sgs.app.Delivery
public enum Delivery
Representation for message delivery guarantees. A channel is
created with a delivery guarantee. See the ChannelManager.createChannel
method
for details.
With all delivery guarantees, messages are guaranteed to be delivered at most once.
Enum Constant Summary | |
---|---|
ORDERED_UNRELIABLE
Ordered unreliable delivery: Message delivery is not guaranteed. |
|
RELIABLE
Reliable delivery: Message delivery is guaranteed unless there is a node or network failure. |
|
UNORDERED_RELIABLE
Unordered reliable delivery: Message delivery is guaranteed unless there is a node or network failure. |
|
UNRELIABLE
Unreliable delivery: Message delivery is not guaranteed. |
Method Summary | |
---|---|
boolean |
supportsDelivery(Delivery delivery)
Returns true if this delivery guarantee meets the minimum
requirements of the specified delivery guarantee, otherwise
returns false . |
static Delivery |
valueOf(String name)
Returns the enum constant of this type with the specified name. |
static Delivery[] |
values()
Returns an array containing the constants of this enum type, in the order they are declared. |
Methods inherited from class java.lang.Enum |
---|
compareTo, equals, 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 Delivery UNRELIABLE
public static final Delivery ORDERED_UNRELIABLE
public static final Delivery UNORDERED_RELIABLE
public static final Delivery RELIABLE
Method Detail |
---|
public static Delivery[] values()
for (Delivery c : Delivery.values()) System.out.println(c);
public static Delivery 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 supportsDelivery(Delivery delivery)
true
if this delivery guarantee meets the minimum
requirements of the specified delivery
guarantee, otherwise
returns false
.
delivery
- a delivery guarantee
true
if this delivery guarantee meets the minimum
requirements of the specified delivery
guarantee
|
Project Darkstar, Version 0.9.9.6 2009-05-08 15:39:40 |
|||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | ENUM CONSTANTS | FIELD | METHOD | DETAIL: ENUM CONSTANTS | FIELD | METHOD |