public static class RecoveryState.Timer extends Object implements Streamable
| 修飾子とタイプ | フィールドと説明 |
|---|---|
protected long |
startNanoTime |
protected long |
startTime |
protected long |
stopTime |
protected long |
time |
| コンストラクタと説明 |
|---|
Timer() |
| 修飾子とタイプ | メソッドと説明 |
|---|---|
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 インタフェース内 StreamableIOExceptionpublic void writeTo(StreamOutput out) throws IOException
writeTo インタフェース内 StreamableIOExceptionCopyright © 2009–2016. All rights reserved.