Package org.infinispan.functional
Enum Param.ReplicationMode
- All Implemented Interfaces:
Serializable
,Comparable<Param.ReplicationMode>
,Param<Param.ReplicationMode>
@Experimental
public static enum Param.ReplicationMode
extends Enum<Param.ReplicationMode>
implements Param<Param.ReplicationMode>
-
Nested Class Summary
Nested classes/interfaces inherited from interface org.infinispan.functional.Param
Param.ExecutionMode, Param.LockingMode, Param.PersistenceMode, Param.ReplicationMode, Param.StatisticsMode
-
Enum Constant Summary
-
Field Summary
-
Method Summary
Modifier and TypeMethodDescriptionstatic Param.ReplicationMode
get()
Parameter's value.int
id()
A parameter's identifier.static Param.ReplicationMode
valueOf
(int ordinal) Returns the enum constant of this type with the specified name.static Param.ReplicationMode
Returns the enum constant of this type with the specified name.static Param.ReplicationMode[]
values()
Returns an array containing the constants of this enum type, in the order they are declared.
-
Enum Constant Details
-
SYNC
Command is completed when all owners are updated. -
ASYNC
Invoking node does not know when the owners are updated nor if the command fails.
-
-
Field Details
-
ID
public static final int ID- See Also:
-
CACHED_VALUES
-
-
Method Details
-
values
Returns an array containing the constants of this enum type, in the order they are declared.- Returns:
- an array containing the constants of this enum type, in the order they are declared
-
valueOf
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
-
id
public int id()Description copied from interface:Param
A parameter's identifier. Each parameter must have a different id.A numeric id makes it flexible enough to be stored in collections that take up low resources, such as arrays.
- Specified by:
id
in interfaceParam<Param.ReplicationMode>
-
get
Description copied from interface:Param
Parameter's value.- Specified by:
get
in interfaceParam<Param.ReplicationMode>
-
defaultValue
-
valueOf
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:
ordinal
- 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
-