Package org.apache.jackrabbit.oak.stats
Interface TimerStats
-
- All Known Implementing Classes:
NoopStats
,SimpleStats
@ProviderType public interface TimerStats extends Stats, Counting
-
-
Nested Class Summary
Nested Classes Modifier and Type Interface Description static interface
TimerStats.Context
A timing context.
-
Method Summary
All Methods Instance Methods Abstract Methods Modifier and Type Method Description TimerStats.Context
time()
Returns a newTimerStats.Context
.void
update(long duration, java.util.concurrent.TimeUnit unit)
Adds a recorded duration.
-
-
-
Method Detail
-
update
void update(long duration, java.util.concurrent.TimeUnit unit)
Adds a recorded duration.- Parameters:
duration
- the length of the durationunit
- the scale unit ofduration
-
time
TimerStats.Context time()
Returns a newTimerStats.Context
.- Returns:
- a new
TimerStats.Context
- See Also:
TimerStats.Context
-
-