Interface Snapshot
- All Known Implementing Classes:
SnapshotImpl
public interface Snapshot
-
Method Summary
Modifier and TypeMethodDescriptionReturns the current average duration of all calls.floatReturns the current failure rate in percentage.intReturns the current number of failed calls.intReturns the current number of failed calls which were slower than a certain threshold.intReturns the current number of successful calls which were slower than a certain threshold.intReturns the current number of successful calls.floatReturns the current percentage of calls which were slower than a certain threshold.Returns the current total duration of all calls.intReturns the current total number of all calls.intReturns the current number of calls which were slower than a certain threshold.
-
Method Details
-
getTotalDuration
Duration getTotalDuration()Returns the current total duration of all calls.- Returns:
- the current total duration of all calls
-
getAverageDuration
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
-