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

public Interface MeasurementData

Known Direct Subinterfaces
io.github.resilience4j.core.metrics.CumulativeMeasurement

Represents a data structure that holds the results of a measurement.

Method Summary

Modifier and TypeMethod and Description
public int

Returns:

the total number of all calls
getNumberOfCalls
()

Returns the total number of all calls in this measurement.

public int

Returns:

the number of failed calls
getNumberOfFailedCalls
()

Returns the number of failed calls in this measurement.

public int

Returns:

the number of calls which were slower than a certain threshold
getNumberOfSlowCalls
()

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

public int

Returns:

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

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

public long

Returns:

the total duration of all calls
getTotalDurationInMillis
()

Returns the total duration of all calls in this measurement.

Method Detail

getNumberOfCallsback to summary
public int getNumberOfCalls()

Returns the total number of all calls in this measurement.

Returns:int

the total number of all calls

getNumberOfFailedCallsback to summary
public int getNumberOfFailedCalls()

Returns the number of failed calls in this measurement.

Returns:int

the number of failed calls

getNumberOfSlowCallsback to summary
public int 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

getNumberOfSlowFailedCallsback to summary
public int 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

getTotalDurationInMillisback to summary
public long getTotalDurationInMillis()

Returns the total duration of all calls in this measurement.

Returns:long

the total duration of all calls