Package org.infinispan.functional
Enum Param.StatisticsMode
- java.lang.Object
-
- java.lang.Enum<Param.StatisticsMode>
-
- org.infinispan.functional.Param.StatisticsMode
-
- All Implemented Interfaces:
Serializable
,Comparable<Param.StatisticsMode>
,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 interface org.infinispan.functional.Param
Param.ExecutionMode, Param.LockingMode, Param.PersistenceMode, Param.ReplicationMode, Param.StatisticsMode
-
-
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.StatisticsMode
defaultValue()
Param.StatisticsMode
get()
Parameter's value.int
id()
A parameter's identifier.static boolean
isSkip(org.infinispan.functional.impl.Params params)
static Param.StatisticsMode
valueOf(int ordinal)
Returns the enum constant of this type with the specified name.static Param.StatisticsMode
valueOf(String name)
Returns the enum constant of this type with the specified name.static Param.StatisticsMode[]
values()
Returns an array containing the constants of this enum type, in the order they are declared.
-
-
-
Enum Constant Detail
-
GATHER
public static final Param.StatisticsMode GATHER
Statistics from this command are recorded
-
SKIP
public static final Param.StatisticsMode SKIP
Statistics from this command are not recorded
-
-
Field Detail
-
ID
public static final int ID
- See Also:
- Constant Field Values
-
-
Method Detail
-
values
public static Param.StatisticsMode[] 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.StatisticsMode c : Param.StatisticsMode.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.StatisticsMode 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.StatisticsMode>
-
get
public Param.StatisticsMode get()
Description copied from interface:Param
Parameter's value.- Specified by:
get
in interfaceParam<Param.StatisticsMode>
-
defaultValue
public static Param.StatisticsMode defaultValue()
-
valueOf
public static Param.StatisticsMode 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
-
isSkip
public static boolean isSkip(org.infinispan.functional.impl.Params params)
-
-