@Internal @ThreadSafe public class PausableRelativeClock extends Object implements org.apache.flink.util.clock.RelativeClock, org.apache.flink.runtime.metrics.TimerGauge.StartStopListener
RelativeClock whose time progress with respect to the wall clock can be paused and
un-paused. It can be paused multiple times. If it is paused N times, it has to be un-paused also
N times to resume progress.| Constructor and Description |
|---|
PausableRelativeClock(org.apache.flink.util.clock.Clock baseClock) |
| Modifier and Type | Method and Description |
|---|---|
void |
markEnd() |
void |
markStart() |
void |
pause() |
long |
relativeTimeMillis() |
long |
relativeTimeNanos() |
void |
unPause() |
public PausableRelativeClock(org.apache.flink.util.clock.Clock baseClock)
public long relativeTimeMillis()
relativeTimeMillis in interface org.apache.flink.util.clock.RelativeClockpublic long relativeTimeNanos()
relativeTimeNanos in interface org.apache.flink.util.clock.RelativeClockpublic void pause()
public void unPause()
public void markStart()
markStart in interface org.apache.flink.runtime.metrics.TimerGauge.StartStopListenerpublic void markEnd()
markEnd in interface org.apache.flink.runtime.metrics.TimerGauge.StartStopListenerCopyright © 2014–2025 The Apache Software Foundation. All rights reserved.