Interface Snapshot
-
- All Known Implementing Classes:
SnapshotImpl
public interface Snapshot
-
-
Method Summary
All Methods Instance Methods Abstract Methods Modifier and Type Method Description java.time.DurationgetAverageDuration()Returns the current average duration of all calls.floatgetFailureRate()Returns the current failure rate in percentage.intgetNumberOfFailedCalls()Returns the current number of failed calls.intgetNumberOfSlowFailedCalls()Returns the current number of failed calls which were slower than a certain threshold.intgetNumberOfSlowSuccessfulCalls()Returns the current number of successful calls which were slower than a certain threshold.intgetNumberOfSuccessfulCalls()Returns the current number of successful calls.floatgetSlowCallRate()Returns the current percentage of calls which were slower than a certain threshold.java.time.DurationgetTotalDuration()Returns the current total duration of all calls.intgetTotalNumberOfCalls()Returns the current total number of all calls.intgetTotalNumberOfSlowCalls()Returns the current number of calls which were slower than a certain threshold.
-
-
-
Method Detail
-
getTotalDuration
java.time.Duration getTotalDuration()
Returns the current total duration of all calls.- Returns:
- the current total duration of all calls
-
getAverageDuration
java.time.Duration getAverageDuration()
Returns the current average duration of all calls.- Returns:
- the current average duration of all calls
-
getTotalNumberOfSlowCalls
int getTotalNumberOfSlowCalls()
Returns the current number of calls which were slower than a certain threshold.- Returns:
- the current number of calls which were slower than a certain threshold
-
getNumberOfSlowSuccessfulCalls
int getNumberOfSlowSuccessfulCalls()
Returns the current number of successful calls which were slower than a certain threshold.- Returns:
- the current number of successful calls which were slower than a certain threshold
-
getNumberOfSlowFailedCalls
int getNumberOfSlowFailedCalls()
Returns the current number of failed calls which were slower than a certain threshold.- Returns:
- the current number of failed calls which were slower than a certain threshold
-
getSlowCallRate
float getSlowCallRate()
Returns the current percentage of calls which were slower than a certain threshold.- Returns:
- the current percentage of calls which were slower than a certain threshold
-
getNumberOfSuccessfulCalls
int getNumberOfSuccessfulCalls()
Returns the current number of successful calls.- Returns:
- the current number of successful calls
-
getNumberOfFailedCalls
int getNumberOfFailedCalls()
Returns the current number of failed calls.- Returns:
- the current number of failed calls
-
getTotalNumberOfCalls
int getTotalNumberOfCalls()
Returns the current total number of all calls.- Returns:
- the current total number of all calls
-
getFailureRate
float getFailureRate()
Returns the current failure rate in percentage.- Returns:
- the current failure rate in percentage
-
-