Package org.apache.jackrabbit.oak.stats
Interface TimerStats
- All Known Implementing Classes:
NoopStats
,SimpleStats
-
Nested Class Summary
Nested Classes -
Method Summary
Modifier and TypeMethodDescriptiontime()
Returns a newTimerStats.Context
.void
Adds a recorded duration.
-
Method Details
-
update
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:
-