Package com.lightbend.cinnamon.stopwatch
Class Timekeeper.RemoteSuspendedStopwatch
- java.lang.Object
-
- com.lightbend.cinnamon.stopwatch.Timekeeper.StopwatchTimer
-
- com.lightbend.cinnamon.stopwatch.Timekeeper.RemoteStopwatch
-
- com.lightbend.cinnamon.stopwatch.Timekeeper.RemoteSuspendedStopwatch
-
- Enclosing class:
- Timekeeper
public static final class Timekeeper.RemoteSuspendedStopwatch extends Timekeeper.RemoteStopwatch
INTERNAL APIA suspended stopwatch that originated on a remote node (records both total elapsed time and active time).
-
-
Constructor Summary
Constructors Constructor Description RemoteSuspendedStopwatch(long startTime, long totalActive, long sampling, java.util.UUID originalStopwatch, long originalStart)
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description long
activeTime(long suspendTime)
long
originalStart()
java.util.UUID
originalStopwatch()
Timekeeper.StopwatchTimer
resume(long resumeTime)
long
sampling()
long
startTime()
-
Methods inherited from class com.lightbend.cinnamon.stopwatch.Timekeeper.StopwatchTimer
suspend
-
-
-
-
Method Detail
-
activeTime
public long activeTime(long suspendTime)
- Overrides:
activeTime
in classTimekeeper.StopwatchTimer
-
originalStart
public long originalStart()
- Specified by:
originalStart
in classTimekeeper.RemoteStopwatch
-
originalStopwatch
public java.util.UUID originalStopwatch()
- Specified by:
originalStopwatch
in classTimekeeper.RemoteStopwatch
-
resume
public Timekeeper.StopwatchTimer resume(long resumeTime)
- Overrides:
resume
in classTimekeeper.StopwatchTimer
-
sampling
public long sampling()
- Specified by:
sampling
in classTimekeeper.StopwatchTimer
-
startTime
public long startTime()
- Specified by:
startTime
in classTimekeeper.StopwatchTimer
-
-