public final class AccumulatedTimerSnapshot extends Object implements AccumulatedTimerSupplier, Serializable
IntervalTimerSupplier.| Modifier and Type | Field and Description |
|---|---|
static AccumulatedTimerSnapshot |
UNAVAILABLE
Constant that corresponds to a snapshot of a counter
in the
StatisticState.UNAVAILABLE state. |
| Constructor and Description |
|---|
AccumulatedTimerSnapshot(AccumulatedTimerSupplier source)
Create a snapshot of the given timer.
|
AccumulatedTimerSnapshot(StatisticState state,
long accumulatedTimeMillis)
Create a snapshot with the specified values
|
| Modifier and Type | Method and Description |
|---|---|
long |
getAccumulatedTimeMillis()
The accumulated time so far.
|
StatisticState |
getState()
Returns the current state of the supplier.
|
AccumulatedTimerSnapshot |
snapshot()
Creates a snapshot of this timer.
|
String |
toString() |
public static final AccumulatedTimerSnapshot UNAVAILABLE
StatisticState.UNAVAILABLE state.public AccumulatedTimerSnapshot(AccumulatedTimerSupplier source)
source - the timerpublic AccumulatedTimerSnapshot(StatisticState state, long accumulatedTimeMillis)
state - the state of the timeraccumulatedTimeMillis - the accumulated time of the timerpublic AccumulatedTimerSnapshot snapshot()
AccumulatedTimerSupplierStatisticState.ACTIVEsnapshot in interface AccumulatedTimerSuppliersnapshot in interface StatisticSupplierpublic StatisticState getState()
StatisticSuppliergetState in interface StatisticSupplierpublic long getAccumulatedTimeMillis()
AccumulatedTimerSupplierAccumulatedTimerSupplier.getAccumulatedTimeMillis().
This value is undefined if the timer is StatisticState.UNAVAILABLE.getAccumulatedTimeMillis in interface AccumulatedTimerSupplierCopyright © 2024 Actian Corporation. All rights reserved.