Package org.infinispan.functional
Enum Class Param.StatisticsMode
- All Implemented Interfaces:
Serializable
,Comparable<Param.StatisticsMode>
,Constable
,Param<Param.StatisticsMode>
@Experimental
public static enum Param.StatisticsMode
extends Enum<Param.StatisticsMode>
implements Param<Param.StatisticsMode>
Defines how statistics are gathered for this command.
-
Nested Class Summary
Nested classes/interfaces inherited from class java.lang.Enum
Enum.EnumDesc<E extends Enum<E>>
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.StatisticsMode
get()
Parameter's value.int
id()
A parameter's identifier.static boolean
static Param.StatisticsMode
valueOf
(int ordinal) Returns the enum constant of this class with the specified name.static Param.StatisticsMode
Returns the enum constant of this class with the specified name.static Param.StatisticsMode[]
values()
Returns an array containing the constants of this enum class, in the order they are declared.
-
Enum Constant Details
-
GATHER
Statistics from this command are recorded -
SKIP
Statistics from this command are not recorded
-
-
Field Details
-
ID
public static final int ID- See Also:
-
-
Method Details
-
values
Returns an array containing the constants of this enum class, in the order they are declared.- Returns:
- an array containing the constants of this enum class, in the order they are declared
-
valueOf
Returns the enum constant of this class with the specified name. The string must match exactly an identifier used to declare an enum constant in this class. (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 class 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.StatisticsMode>
-
get
Description copied from interface:Param
Parameter's value.- Specified by:
get
in interfaceParam<Param.StatisticsMode>
-
defaultValue
-
valueOf
Returns the enum constant of this class with the specified name. The string must match exactly an identifier used to declare an enum constant in this class. (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 class has no constant with the specified nameNullPointerException
- if the argument is null
-
isSkip
-