com.google.cloud.bigtable.metrics
Interface Timer
-
public interface Timer
A timer metric which aggregates timing durations and provides duration statistics, plus throughput statistics.
-
-
Nested Class Summary
Nested Classes Modifier and Type Interface and Description static interface
Timer.Context
A timing context.
-
Method Summary
All Methods Instance Methods Abstract Methods Modifier and Type Method and Description Timer.Context
time()
Returns a newTimer.Context
.void
update(long duration, TimeUnit unit)
Adds a recorded duration.
-
-
-
Method Detail
-
time
Timer.Context time()
Returns a newTimer.Context
.- Returns:
- a new
Timer.Context
- See Also:
Timer.Context
-
update
void update(long duration, TimeUnit unit)
Adds a recorded duration.- Parameters:
duration
- the length of the durationunit
- the scale unit ofduration
-
-