Enum DeliverOrder
- java.lang.Object
-
- java.lang.Enum<DeliverOrder>
-
- org.infinispan.remoting.inboundhandler.DeliverOrder
-
- All Implemented Interfaces:
Serializable
,Comparable<DeliverOrder>
public enum DeliverOrder extends Enum<DeliverOrder>
Used in RPC, it defines how the messages are delivered to the nodes.- Since:
- 7.1
- Author:
- Pedro Ruivo
-
-
Enum Constant Summary
Enum Constants Enum Constant Description NONE
The message is delivered as soon as it is received.PER_SENDER
The message is delivered by the order they are sent.TOTAL
The message is delivered in the same order in all the destinations.
-
Method Summary
All Methods Static Methods Instance Methods Abstract Methods Concrete Methods Modifier and Type Method Description abstract boolean
preserveOrder()
static DeliverOrder
valueOf(String name)
Returns the enum constant of this type with the specified name.static DeliverOrder[]
values()
Returns an array containing the constants of this enum type, in the order they are declared.
-
-
-
Enum Constant Detail
-
NONE
public static final DeliverOrder NONE
The message is delivered as soon as it is received. No order is ensured between messages.
-
PER_SENDER
public static final DeliverOrder 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.
-
TOTAL
public static final DeliverOrder TOTAL
The message is delivered in the same order in all the destinations. If N1 sends M1 and N2 sends M2 to nodes N3 and N4, if N3 delivers first M1 and then M2, then N4 also delivers first M1 and then M2.
-
-
Method Detail
-
values
public static DeliverOrder[] values()
Returns an array containing the constants of this enum type, in the order they are declared. This method may be used to iterate over the constants as follows:for (DeliverOrder c : DeliverOrder.values()) System.out.println(c);
- Returns:
- an array containing the constants of this enum type, in the order they are declared
-
valueOf
public static DeliverOrder valueOf(String name)
Returns the enum constant of this type with the specified name. The string must match exactly an identifier used to declare an enum constant in this type. (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 type has no constant with the specified nameNullPointerException
- if the argument is null
-
preserveOrder
public abstract boolean preserveOrder()
-
-