Package io.debezium.util
Interface Stopwatch.Statistics
-
- Enclosing class:
- Stopwatch
public static interface Stopwatch.Statistics
The timing statistics for a recorded set of samples.
-
-
Method Summary
All Methods Instance Methods Abstract Methods Default Methods Modifier and Type Method Description Duration
getAverage()
Returns the arithmetic mean of all recorded durations.default String
getAverageAsString()
Returns a string representation of the arithmetic mean of all recorded durations.long
getCount()
Returns the count of durations recorded.Duration
getMaximum()
Returns the maximum of all recorded durations.default String
getMaximumAsString()
Returns a string representation of the maximum of all recorded durations.Duration
getMinimum()
Returns the minimum of all recorded durations.default String
getMinimumAsString()
Returns a string representation of the minimum of all recorded durations.Duration
getTotal()
Returns the total of all recorded durations.default String
getTotalAsString()
Returns a string representation of the total of all recorded durations.
-
-
-
Method Detail
-
getCount
long getCount()
Returns the count of durations recorded.- Returns:
- the count of durations
-
getTotal
Duration getTotal()
Returns the total of all recorded durations.- Returns:
- The total duration; never null but possibly
Duration.ZERO
.
-
getMinimum
Duration getMinimum()
Returns the minimum of all recorded durations.- Returns:
- The minimum duration; never null but possibly
Duration.ZERO
.
-
getMaximum
Duration getMaximum()
Returns the maximum of all recorded durations.- Returns:
- The maximum duration; never null but possibly
Duration.ZERO
.
-
getAverage
Duration getAverage()
Returns the arithmetic mean of all recorded durations.- Returns:
- The average duration; never null but possibly
Duration.ZERO
.
-
getTotalAsString
default String getTotalAsString()
Returns a string representation of the total of all recorded durations.- Returns:
- the string representation of the total duration; never null but possibly
Duration.ZERO
.
-
getMinimumAsString
default String getMinimumAsString()
Returns a string representation of the minimum of all recorded durations.- Returns:
- the string representation of the minimum duration; never null but possibly
Duration.ZERO
.
-
getMaximumAsString
default String getMaximumAsString()
Returns a string representation of the maximum of all recorded durations.- Returns:
- the string representation of the maximum duration; never null but possibly
Duration.ZERO
.
-
getAverageAsString
default String getAverageAsString()
Returns a string representation of the arithmetic mean of all recorded durations.- Returns:
- the string representation of the average duration; never null but possibly
Duration.ZERO
.
-
-