T - the type of statistic supplierpublic final class RuntimeStatistic<T extends StatisticSupplier> extends Object implements Serializable
StatisticDefinition and its StatisticSupplier.StatisticDefinition,
StatisticSupplier,
Serialized Form| Constructor and Description |
|---|
RuntimeStatistic(StatisticDefinition<T> definition,
T supplier)
Create a new statistic
|
| Modifier and Type | Method and Description |
|---|---|
StatisticDefinition<T> |
definition()
Return the definition of this statistic
|
RuntimeStatistic<T> |
finalSnapshot()
Creates a final snapshot of this statistic
|
RuntimeStatistic<T> |
snapshot()
Creates a snapshot of this statistic
|
T |
supplier()
Returns the supplier of this statistic
|
public RuntimeStatistic(StatisticDefinition<T> definition, T supplier)
definition - the definitionsupplier - the supplierpublic StatisticDefinition<T> definition()
public T supplier()
public RuntimeStatistic<T> snapshot()
public RuntimeStatistic<T> finalSnapshot()
Copyright © 2021 Actian Corporation. All rights reserved.