Package org.apache.iceberg.metrics
Interface TimerResult
-
@Immutable public interface TimerResult
A serializable version of aTimer
that carries its result.
-
-
Method Summary
All Methods Static Methods Instance Methods Abstract Methods Modifier and Type Method Description long
count()
static TimerResult
fromTimer(Timer timer)
static TimerResult
of(java.util.concurrent.TimeUnit timeUnit, java.time.Duration duration, long count)
java.util.concurrent.TimeUnit
timeUnit()
java.time.Duration
totalDuration()
-
-
-
Method Detail
-
timeUnit
java.util.concurrent.TimeUnit timeUnit()
-
totalDuration
java.time.Duration totalDuration()
-
count
long count()
-
fromTimer
static TimerResult fromTimer(Timer timer)
-
of
static TimerResult of(java.util.concurrent.TimeUnit timeUnit, java.time.Duration duration, long count)
-
-