public interface ResponseStatistics
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 |
---|---|
Integer |
getLastResponseCode()
Returns the response code of a last response written by the application.
|
Map<Integer,Long> |
getResponseCodes()
Returns statistics of response codes produces by the application.
|
ResponseStatistics |
snapshot()
Deprecated.
implementing class is immutable hence snapshot creation is not needed anymore
|
Integer getLastResponseCode()
Map<Integer,Long> getResponseCodes()
@Deprecated ResponseStatistics snapshot()
Copyright © 2007-2024, Oracle and/or its affiliates. All Rights Reserved. Use is subject to license terms.