final class ResponseStatisticsImpl extends java.lang.Object implements ResponseStatistics
| Modifier and Type | Class and Description |
|---|---|
(package private) static class |
ResponseStatisticsImpl.Builder
This builder does not need to be threadsafe since it's called only from the jersey-background-task-scheduler.
|
| Modifier and Type | Field and Description |
|---|---|
private java.lang.Integer |
lastResponseCode |
private java.util.Map<java.lang.Integer,java.lang.Long> |
responseCodes |
| Modifier | Constructor and Description |
|---|---|
private |
ResponseStatisticsImpl(java.lang.Integer lastResponseCode,
java.util.Map<java.lang.Integer,java.lang.Long> responseCodes) |
| Modifier and Type | Method and Description |
|---|---|
java.lang.Integer |
getLastResponseCode()
Returns the response code of a last response written by the application.
|
java.util.Map<java.lang.Integer,java.lang.Long> |
getResponseCodes()
Returns statistics of response codes produces by the application.
|
ResponseStatistics |
snapshot()
Get the immutable and consistent snapshot of the monitoring statistics.
|
private final java.util.Map<java.lang.Integer,java.lang.Long> responseCodes
private final java.lang.Integer lastResponseCode
private ResponseStatisticsImpl(java.lang.Integer lastResponseCode,
java.util.Map<java.lang.Integer,java.lang.Long> responseCodes)
public java.lang.Integer getLastResponseCode()
ResponseStatisticsgetLastResponseCode in interface ResponseStatisticspublic java.util.Map<java.lang.Integer,java.lang.Long> getResponseCodes()
ResponseStatisticsgetResponseCodes in interface ResponseStatisticspublic ResponseStatistics snapshot()
ResponseStatisticssnapshot in interface ResponseStatistics