Top Fields Constructors Methods
io.github.resilience4j.core.metrics

pack-priv abstract Class AbstractAggregation

extends Object
implements CumulativeMeasurement
Class Inheritance
All Implemented Interfaces
io.github.resilience4j.core.metrics.CumulativeMeasurement, io.github.resilience4j.core.metrics.MeasurementData
Known Direct Subclasses
io.github.resilience4j.core.metrics.Measurement, io.github.resilience4j.core.metrics.PartialAggregation, io.github.resilience4j.core.metrics.TotalAggregation
Imports
java.util.concurrent.TimeUnit

Field Summary

Modifier and TypeField and Description
pack-priv int
pack-priv int
pack-priv int
pack-priv int
pack-priv long

Constructor Summary

AccessConstructor and Description
pack-priv

Method Summary

Modifier and TypeMethod and Description
public int
getNumberOfCalls()

Implements io.github.resilience4j.core.metrics.MeasurementData.getNumberOfCalls.

Returns the total number of all calls in this measurement.

public int
getNumberOfFailedCalls()

Implements io.github.resilience4j.core.metrics.MeasurementData.getNumberOfFailedCalls.

Returns the number of failed calls in this measurement.

public int
getNumberOfSlowCalls()

Implements io.github.resilience4j.core.metrics.MeasurementData.getNumberOfSlowCalls.

Returns the number of calls in this measurement which were slower than a certain threshold.

public int
getNumberOfSlowFailedCalls()

Implements io.github.resilience4j.core.metrics.MeasurementData.getNumberOfSlowFailedCalls.

Returns the number of failed calls in this measurement which were slower than a certain threshold.

public long
getTotalDurationInMillis()

Implements io.github.resilience4j.core.metrics.MeasurementData.getTotalDurationInMillis.

Returns the total duration of all calls in this measurement.

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
)

Implements io.github.resilience4j.core.metrics.CumulativeMeasurement.record.

Records a call duration and its outcome.

Inherited from java.lang.Object:
cloneequalsfinalizegetClasshashCodenotifynotifyAlltoStringwaitwaitwait

Field Detail

numberOfCallsback to summary
pack-priv int numberOfCalls
numberOfFailedCallsback to summary
pack-priv int numberOfFailedCalls
numberOfSlowCallsback to summary
pack-priv int numberOfSlowCalls
numberOfSlowFailedCallsback to summary
pack-priv int numberOfSlowFailedCalls
totalDurationInMillisback to summary
pack-priv long totalDurationInMillis

Constructor Detail

AbstractAggregationback to summary
pack-priv AbstractAggregation()

Method Detail

getNumberOfCallsback to summary
public int getNumberOfCalls()

Implements io.github.resilience4j.core.metrics.MeasurementData.getNumberOfCalls.

Doc from io.github.resilience4j.core.metrics.MeasurementData.getNumberOfCalls.

Returns the total number of all calls in this measurement.

Returns:int

the total number of all calls

Annotations
@Override
getNumberOfFailedCallsback to summary
public int getNumberOfFailedCalls()

Implements io.github.resilience4j.core.metrics.MeasurementData.getNumberOfFailedCalls.

Doc from io.github.resilience4j.core.metrics.MeasurementData.getNumberOfFailedCalls.

Returns the number of failed calls in this measurement.

Returns:int

the number of failed calls

Annotations
@Override
getNumberOfSlowCallsback to summary
public int getNumberOfSlowCalls()

Implements io.github.resilience4j.core.metrics.MeasurementData.getNumberOfSlowCalls.

Doc from io.github.resilience4j.core.metrics.MeasurementData.getNumberOfSlowCalls.

Returns the number of calls in this measurement which were slower than a certain threshold.

Returns:int

the number of calls which were slower than a certain threshold

Annotations
@Override
getNumberOfSlowFailedCallsback to summary
public int getNumberOfSlowFailedCalls()

Implements io.github.resilience4j.core.metrics.MeasurementData.getNumberOfSlowFailedCalls.

Doc from io.github.resilience4j.core.metrics.MeasurementData.getNumberOfSlowFailedCalls.

Returns the number of failed calls in this measurement which were slower than a certain threshold.

Returns:int

the number of failed calls which were slower than a certain threshold

Annotations
@Override
getTotalDurationInMillisback to summary
public long getTotalDurationInMillis()

Implements io.github.resilience4j.core.metrics.MeasurementData.getTotalDurationInMillis.

Doc from io.github.resilience4j.core.metrics.MeasurementData.getTotalDurationInMillis.

Returns the total duration of all calls in this measurement.

Returns:long

the total duration of all calls

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

Implements io.github.resilience4j.core.metrics.CumulativeMeasurement.record.

Doc from io.github.resilience4j.core.metrics.CumulativeMeasurement.record.

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