- All Implemented Interfaces:
Serializable,Comparable<StatisticState>,java.lang.constant.Constable
The state associated with a
StatisticSupplier.-
Nested Class Summary
Nested classes/interfaces inherited from class java.lang.Enum
Enum.EnumDesc<E extends Enum<E>> -
Enum Constant Summary
Enum ConstantsEnum ConstantDescriptionCollection of the statistic has started; partial results are availableCollection of statistic has finished; final results are available.Collection of the statistic has paused; partial results are availableStatistic is either newly-created and has not yet started or is not available. -
Method Summary
Modifier and TypeMethodDescriptionabstract booleanReturns whether the statistic is currently availableabstract booleanReturns whether collection of the statistic has finishedstatic StatisticStateReturns the enum constant of this class with the specified name.static StatisticState[]values()Returns an array containing the constants of this enum class, in the order they are declared.
-
Enum Constant Details
-
UNAVAILABLE
Statistic is either newly-created and has not yet started or is not available. -
ACTIVE
Collection of the statistic has started; partial results are available -
PAUSED
Collection of the statistic has paused; partial results are available -
FINISHED
Collection of statistic has finished; final results are available. Once a statistic reaches this state, the value is expected to no longer change. The framework may optimize out statistics that have reached the finished state by performing early aggregation of those statistics.
-
-
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
-
isAvailable
public abstract boolean isAvailable()Returns whether the statistic is currently available- Returns:
- whether the statistic is available
-
isFinished
public abstract boolean isFinished()Returns whether collection of the statistic has finished- Returns:
- whether collection of the statistic has finished
-