public static class RecoveryState.Timer extends Object implements Streamable
Modifier and Type | Field and Description |
---|---|
protected long |
startNanoTime |
protected long |
startTime |
protected long |
stopTime |
protected long |
time |
Constructor and Description |
---|
Timer() |
Modifier and Type | Method and Description |
---|---|
void |
readFrom(StreamInput in) |
void |
reset() |
void |
start() |
long |
startTime()
Returns start time in millis
|
void |
stop() |
long |
stopTime()
Returns stop time in millis
|
long |
time()
Returns elapsed time in millis, or 0 if timer was not started
|
void |
writeTo(StreamOutput out) |
protected long startTime
protected long startNanoTime
protected long time
protected long stopTime
public void start()
public long startTime()
public long time()
public long stopTime()
public void stop()
public void reset()
public void readFrom(StreamInput in) throws IOException
readFrom
in interface Streamable
IOException
public void writeTo(StreamOutput out) throws IOException
writeTo
in interface Streamable
IOException
Copyright © 2009–2016. All rights reserved.