Package org.infinispan.functional
Enum 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. Using
SKIP
, 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
-
Field Summary
-
Method Summary
Modifier and TypeMethodDescriptionstatic Param.PersistenceMode
Provides default persistence mode.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
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 Details
-
LOAD_PERSIST
-
SKIP_PERSIST
-
SKIP_LOAD
-
SKIP
-
-
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.PersistenceMode>
-
get
Description copied from interface:Param
Parameter's value.- Specified by:
get
in interfaceParam<Param.PersistenceMode>
-
defaultValue
Provides default persistence mode. -
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
-