Package org.infinispan.functional
Enum Param.PersistenceMode
- java.lang.Object
-
- java.lang.Enum<Param.PersistenceMode>
-
- org.infinispan.functional.Param.PersistenceMode
-
- All Implemented Interfaces:
Serializable
,Comparable<Param.PersistenceMode>
,Param<Param.PersistenceMode>
@Experimental public static enum Param.PersistenceMode extends Enum<Param.PersistenceMode> implements Param<Param.PersistenceMode>
When a persistence store is attached to a cache, by default all write operations, regardless of whether they are inserts, updates or removes, are persisted to the store. UsingSKIP
, the write operations can skip the persistence store modification, applying the effects of the write operation only in the in-memory contents of the caches in the cluster.- Since:
- 8.0
-
-
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 LOAD_PERSIST
SKIP
SKIP_LOAD
SKIP_PERSIST
-
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.PersistenceMode
defaultValue()
Provides default persistence mode.Param.PersistenceMode
get()
Parameter's value.int
id()
A parameter's identifier.static Param.PersistenceMode
valueOf(int ordinal)
Returns the enum constant of this type with the specified name.static Param.PersistenceMode
valueOf(String name)
Returns the enum constant of this type with the specified name.static Param.PersistenceMode[]
values()
Returns an array containing the constants of this enum type, in the order they are declared.
-
-
-
Enum Constant Detail
-
LOAD_PERSIST
public static final Param.PersistenceMode LOAD_PERSIST
-
SKIP_PERSIST
public static final Param.PersistenceMode SKIP_PERSIST
-
SKIP_LOAD
public static final Param.PersistenceMode SKIP_LOAD
-
SKIP
public static final Param.PersistenceMode SKIP
-
-
Field Detail
-
ID
public static final int ID
- See Also:
- Constant Field Values
-
-
Method Detail
-
values
public static Param.PersistenceMode[] 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.PersistenceMode c : Param.PersistenceMode.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.PersistenceMode 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.PersistenceMode>
-
get
public Param.PersistenceMode get()
Description copied from interface:Param
Parameter's value.- Specified by:
get
in interfaceParam<Param.PersistenceMode>
-
defaultValue
public static Param.PersistenceMode defaultValue()
Provides default persistence mode.
-
valueOf
public static Param.PersistenceMode 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
-
-