Package org.infinispan.functional
Enum 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 ConstantDescriptionCommand is executed on its owners, in transactional mode in the context, too, but there it is not persisted.Command is executed only locally, it is not sent to remote nodes.Command is executed only in the current site (same asALL
, but it is not sent for backup to other sites) -
Field Summary
-
Method Summary
Modifier and TypeMethodDescriptionstatic 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
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 Details
-
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
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
Command is executed only in the current site (same asALL
, but it is not sent for backup to other sites)
-
-
Field Details
-
ID
public static final int ID- See Also:
-
-
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.ExecutionMode>
-
get
Description copied from interface:Param
Parameter's value.- Specified by:
get
in interfaceParam<Param.ExecutionMode>
-
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
-