Interface Metrics
- All Known Implementing Classes:
FixedSizeSlidingWindowMetrics,SlidingTimeWindowMetrics
public interface Metrics
-
Nested Class Summary
Nested Classes -
Method Summary
Modifier and TypeMethodDescriptionReturns a snapshot.record(long duration, TimeUnit durationUnit, Metrics.Outcome outcome) Records a call.
-
Method Details
-
record
Records a call.- Parameters:
duration- the duration of the calldurationUnit- the time unit of the durationoutcome- the outcome of the call
-
getSnapshot
Snapshot getSnapshot()Returns a snapshot.- Returns:
- a snapshot
-