Package org.infinispan.functional
Enum Param.ExecutionMode
- java.lang.Object
-
- java.lang.Enum<Param.ExecutionMode>
-
- org.infinispan.functional.Param.ExecutionMode
-
- All Implemented Interfaces:
Serializable
,Comparable<Param.ExecutionMode>
,Param<Param.ExecutionMode>
@Experimental public static enum Param.ExecutionMode extends Enum<Param.ExecutionMode> implements Param<Param.ExecutionMode>
Defines where is the command executed.
-
-
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
Enum Constants Enum Constant Description ALL
Command is executed on its owners, in transactional mode in the context, too, but there it is not persisted.LOCAL
Command is executed only locally, it is not sent to remote nodes.LOCAL_SITE
Command is executed only in the current site (same asALL
, but it is not sent for backup to other sites)
-
Field Summary
Fields Modifier and Type Field Description static int
ID
-
Method Summary
All Methods Static Methods Instance Methods Concrete Methods Modifier and Type Method Description static Param.ExecutionMode
defaultValue()
Param.ExecutionMode
get()
Parameter's value.int
id()
A parameter's identifier.static Param.ExecutionMode
valueOf(int ordinal)
Returns the enum constant of this type with the specified name.static Param.ExecutionMode
valueOf(String name)
Returns the enum constant of this type with the specified name.static Param.ExecutionMode[]
values()
Returns an array containing the constants of this enum type, in the order they are declared.
-
-
-
Enum Constant Detail
-
ALL
public static final Param.ExecutionMode ALL
Command is executed on its owners, in transactional mode in the context, too, but there it is not persisted. The result of the command is backed up to all sites configured for backup. Note: under some circumstances it may be necessary to transfer full value instead of executing the command on some owners; the application must not rely on any side effects of command execution.
-
LOCAL
public static final Param.ExecutionMode LOCAL
Command is executed only locally, it is not sent to remote nodes. If the command is a write and this node is not an owner of given entry, the entry is not stored in the cache; if the node is an owner the entry is stored (even without contacting the primary owner, if this is a backup). If the command reads a value and the entry is not available locally, null entry is provided instead.
-
LOCAL_SITE
public static final Param.ExecutionMode LOCAL_SITE
Command is executed only in the current site (same asALL
, but it is not sent for backup to other sites)
-
-
Field Detail
-
ID
public static final int ID
- See Also:
- Constant Field Values
-
-
Method Detail
-
values
public static Param.ExecutionMode[] 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 (Param.ExecutionMode c : Param.ExecutionMode.values()) System.out.println(c);
- Returns:
- an array containing the constants of this enum type, in the order they are declared
-
valueOf
public static Param.ExecutionMode 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
-
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.ExecutionMode>
-
get
public Param.ExecutionMode get()
Description copied from interface:Param
Parameter's value.- Specified by:
get
in interfaceParam<Param.ExecutionMode>
-
defaultValue
public static Param.ExecutionMode defaultValue()
-
valueOf
public static Param.ExecutionMode valueOf(int ordinal)
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
-
-