Interface CumulativeMeasurement
- All Superinterfaces:
MeasurementData
- All Known Implementing Classes:
PackedAggregation,PartialAggregation
Interface for measurement implementations that accumulate calls durations and outcomes.
-
Method Summary
Modifier and TypeMethodDescriptionvoidrecord(long duration, TimeUnit durationUnit, Metrics.Outcome outcome) Records a call duration and its outcome.Methods inherited from interface io.github.resilience4j.core.metrics.MeasurementData
getNumberOfCalls, getNumberOfFailedCalls, getNumberOfSlowCalls, getNumberOfSlowFailedCalls, getTotalDurationInMillis
-
Method Details
-
record
Records a call duration and its outcome.- Parameters:
duration- the call durationdurationUnit- the time unit of the call durationoutcome- the outcome of the call
-