Package io.debezium.util
Class Stopwatch.MultipleDurations
- java.lang.Object
-
- io.debezium.util.Stopwatch.BaseDurations
-
- io.debezium.util.Stopwatch.MultipleDurations
-
- All Implemented Interfaces:
Stopwatch.Durations
- Enclosing class:
- Stopwatch
@ThreadSafe private static final class Stopwatch.MultipleDurations extends Stopwatch.BaseDurations
AStopwatch.Durationsimplementation that accumulates alladdeddurations.
-
-
Field Summary
Fields Modifier and Type Field Description private ConcurrentLinkedQueue<Duration>durations
-
Constructor Summary
Constructors Modifier Constructor Description privateMultipleDurations()
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description voidadd(Duration duration)Stopwatch.Statisticsstatistics()Get the statistics for the durations in nanoseconds.-
Methods inherited from class io.debezium.util.Stopwatch.BaseDurations
toString
-
-
-
-
Field Detail
-
durations
private final ConcurrentLinkedQueue<Duration> durations
-
-
Method Detail
-
statistics
public Stopwatch.Statistics statistics()
Description copied from interface:Stopwatch.DurationsGet the statistics for the durations in nanoseconds.- Returns:
- the statistics; never null
-
add
public void add(Duration duration)
- Specified by:
addin classStopwatch.BaseDurations
-
-