Package org.infinispan.functional
Enum Param.LockingMode
- All Implemented Interfaces:
Serializable,Comparable<Param.LockingMode>,Param<Param.LockingMode>
@Experimental
public static enum Param.LockingMode
extends Enum<Param.LockingMode>
implements Param<Param.LockingMode>
Normally the cache has to acquire locks during any write operation to guarantee
its correctness. If the application is sure that no concurrent operation occurs,
it is possible to increase performance by setting this param to
SKIP.
The result of any operation without locking is undefined under presence of concurrent
writes.-
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 -
Field Summary
Fields -
Method Summary
Modifier and TypeMethodDescriptionstatic Param.LockingModeget()Parameter's value.intid()A parameter's identifier.static Param.LockingModevalueOf(int ordinal) Returns the enum constant of this type with the specified name.static Param.LockingModeReturns the enum constant of this type with the specified name.static Param.LockingMode[]values()Returns an array containing the constants of this enum type, in the order they are declared.
-
Enum Constant Details
-
LOCK
-
SKIP
-
TRY_LOCK
The operation fails when it is not possible to acquire the lock without waiting.
-
-
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:ParamA 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:
idin interfaceParam<Param.LockingMode>
-
get
Description copied from interface:ParamParameter's value.- Specified by:
getin interfaceParam<Param.LockingMode>
-
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
-