public interface TimeWindowStatistics
TimeWindowStatistics
is the size of the time window. This is the time
for which the statistics are measured (for example for time window 1 hour, the statistics are evaluated
for last one hour and older statistics are dropped). The size of the time window can be retrieved by
getTimeWindow()
.
Statistics retrieved from Jersey runtime might be mutable and thanks to it might provide inconsistent data
as not all statistics are updated in the same time. To retrieve the immutable and consistent
statistics data the method snapshot()
should be used.
See monitoring statistics for general details about statistics.
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()
Deprecated.
implementing class is immutable hence snapshot creation is not needed anymore
|
long getTimeWindow()
double getRequestsPerSecond()
long getMinimumDuration()
long getMaximumDuration()
long getAverageDuration()
long getRequestCount()
@Deprecated TimeWindowStatistics snapshot()
Copyright © 2007-2024, Oracle and/or its affiliates. All Rights Reserved. Use is subject to license terms.