public static class MetricRegistry.PersistTimes extends Object
Modifier and Type | Field and Description |
---|---|
static long |
INITIAL
The initial time stamp value.
|
Constructor and Description |
---|
PersistTimes()
Default constructor, which sets both time stamps to a known initial
value.
|
PersistTimes(long nextCheck)
Constructor that initializes the last persisted time stamp to a known
initial value, and uses the specified value to initialize the next
check time stamp.
|
Modifier and Type | Method and Description |
---|---|
long |
getLastPersisted()
Gets the last persisted time stamp.
|
long |
getNextCheck()
Gets the next check time stamp.
|
void |
setLastPersisted(long toSet)
Sets the last persisted time stamp.
|
void |
setNextCheck(long toSet)
Sets the next check time stamp.
|
public static final long INITIAL
public PersistTimes()
public PersistTimes(long nextCheck)
nextCheck
- next time the metric should be persistedpublic long getLastPersisted()
public long getNextCheck()
public void setLastPersisted(long toSet)
toSet
- time stamppublic void setNextCheck(long toSet)
toSet
- time stampCopyright © 2016. All Rights Reserved.