public class TimeWindowStatisticsImpl extends Object implements TimeWindowStatistics
Time window statistics implementation.| Modifier and Type | Method and Description |
|---|---|
long |
getAverageDuration()
Returns the average duration (processing time) in milliseconds of the request processing measured
in the time window.
|
long |
getMaximumDuration()
Returns the maximum duration (processing time) in milliseconds of the request processing measured
in the time window.
|
long |
getMinimumDuration()
Returns the minimum duration (processing time) in milliseconds of the request processing measured
in the time window.
|
long |
getRequestCount()
Returns the count of requests received measured in the time window.
|
double |
getRequestsPerSecond()
Returns average value of how many requests per second were received by application in the time window.
|
long |
getTimeWindow()
Returns the size of time window in milliseconds.
|
TimeWindowStatistics |
snapshot()
Get the immutable and consistent snapshot of the monitoring statistics.
|
public long getTimeWindow()
TimeWindowStatisticsgetTimeWindow in interface TimeWindowStatisticspublic double getRequestsPerSecond()
TimeWindowStatisticsgetRequestsPerSecond in interface TimeWindowStatisticspublic long getMinimumDuration()
TimeWindowStatisticsgetMinimumDuration in interface TimeWindowStatisticspublic long getMaximumDuration()
TimeWindowStatisticsgetMaximumDuration in interface TimeWindowStatisticspublic long getRequestCount()
TimeWindowStatisticsgetRequestCount in interface TimeWindowStatisticspublic TimeWindowStatistics snapshot()
TimeWindowStatisticssnapshot in interface TimeWindowStatisticspublic long getAverageDuration()
TimeWindowStatisticsgetAverageDuration in interface TimeWindowStatisticsCopyright © 2007-2013, Oracle and/or its affiliates. All Rights Reserved. Use is subject to license terms.