Enum Class DeliverOrder
- All Implemented Interfaces:
Serializable
,Comparable<DeliverOrder>
,Constable
Used in RPC, it defines how the messages are delivered to the nodes.
- Since:
- 7.1
- Author:
- Pedro Ruivo
-
Nested Class Summary
Nested classes/interfaces inherited from class java.lang.Enum
Enum.EnumDesc<E extends Enum<E>>
-
Enum Constant Summary
Enum ConstantDescriptionThe message is delivered as soon as it is received.The message is delivered as soon as it is received and, it is not affected by any flow control algorithm.The message is delivered by the order they are sent.The message is delivered by the order they are sent and, it is not affected by any flow control algorithm. -
Method Summary
Modifier and TypeMethodDescriptionabstract boolean
boolean
static DeliverOrder
Returns the enum constant of this class with the specified name.static DeliverOrder[]
values()
Returns an array containing the constants of this enum class, in the order they are declared.
-
Enum Constant Details
-
NONE
The message is delivered as soon as it is received. No order is ensured between messages. -
NONE_NO_FC
The message is delivered as soon as it is received and, it is not affected by any flow control algorithm. No order is ensured between messages. -
PER_SENDER
The message is delivered by the order they are sent. If a node sends M1 and M2 to other node, it delivers first M1 and then M2. -
PER_SENDER_NO_FC
The message is delivered by the order they are sent and, it is not affected by any flow control algorithm. If a node sends M1 and M2 to other node, it delivers first M1 and then M2.
-
-
Method Details
-
values
Returns an array containing the constants of this enum class, in the order they are declared.- Returns:
- an array containing the constants of this enum class, in the order they are declared
-
valueOf
Returns the enum constant of this class with the specified name. The string must match exactly an identifier used to declare an enum constant in this class. (Extraneous whitespace characters are not permitted.)- Parameters:
name
- the name of the enum constant to be returned.- Returns:
- the enum constant with the specified name
- Throws:
IllegalArgumentException
- if this enum class has no constant with the specified nameNullPointerException
- if the argument is null
-
preserveOrder
public abstract boolean preserveOrder() -
skipFlowControl
public boolean skipFlowControl()
-