Top Description Methods
io.github.resilience4j.core.metrics

public Interface CumulativeMeasurement

extends MeasurementData
Known Direct Implementers
io.github.resilience4j.core.metrics.PackedAggregation, io.github.resilience4j.core.metrics.AbstractAggregation
Imports
java.util.concurrent.TimeUnit

Interface for measurement implementations that accumulate calls durations and outcomes.

Method Summary

Modifier and TypeMethod and Description
public void
record(long
the call duration
duration
,
TimeUnit
the time unit of the call duration
durationUnit
,
Metrics.Outcome
the outcome of the call
outcome
)

Records a call duration and its outcome.

Inherited from io.github.resilience4j.core.metrics.MeasurementData:
getNumberOfCallsgetNumberOfFailedCallsgetNumberOfSlowCallsgetNumberOfSlowFailedCallsgetTotalDurationInMillis

Method Detail

recordback to summary
public void record(long duration, TimeUnit durationUnit, Metrics.Outcome outcome)

Records a call duration and its outcome.

Parameters
duration:long

the call duration

durationUnit:TimeUnit

the time unit of the call duration

outcome:Metrics.Outcome

the outcome of the call