Package org.infinispan.functional
Enum Param.LockingMode
- java.lang.Object
- 
- java.lang.Enum<Param.LockingMode>
- 
- org.infinispan.functional.Param.LockingMode
 
 
- 
- All Implemented Interfaces:
- java.io.Serializable,- java.lang.Comparable<Param.LockingMode>,- Param<Param.LockingMode>
 
 public static enum Param.LockingMode extends java.lang.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 toSKIP. 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.ParamParam.ExecutionMode, Param.LockingMode, Param.PersistenceMode, Param.ReplicationMode, Param.StatisticsMode
 
- 
 - 
Field SummaryFields Modifier and Type Field Description static intID
 - 
Method SummaryAll Methods Static Methods Instance Methods Concrete Methods Modifier and Type Method Description static Param.LockingModedefaultValue()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.LockingModevalueOf(java.lang.String name)Returns 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 Detail- 
LOCKpublic static final Param.LockingMode LOCK 
 - 
SKIPpublic static final Param.LockingMode SKIP 
 - 
TRY_LOCKpublic static final Param.LockingMode TRY_LOCK The operation fails when it is not possible to acquire the lock without waiting.
 
- 
 - 
Field Detail- 
IDpublic static final int ID - See Also:
- Constant Field Values
 
 
- 
 - 
Method Detail- 
valuespublic static Param.LockingMode[] 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.LockingMode c : Param.LockingMode.values()) System.out.println(c); - Returns:
- an array containing the constants of this enum type, in the order they are declared
 
 - 
valueOfpublic static Param.LockingMode valueOf(java.lang.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:
- java.lang.IllegalArgumentException- if this enum type has no constant with the specified name
- java.lang.NullPointerException- if the argument is null
 
 - 
idpublic 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 interface- Param<Param.LockingMode>
 
 - 
getpublic Param.LockingMode get() Description copied from interface:ParamParameter's value.- Specified by:
- getin interface- Param<Param.LockingMode>
 
 - 
defaultValuepublic static Param.LockingMode defaultValue() 
 - 
valueOfpublic static Param.LockingMode 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:
- java.lang.IllegalArgumentException- if this enum type has no constant with the specified name
- java.lang.NullPointerException- if the argument is null
 
 
- 
 
-