public class ResponseMXBeanImpl extends java.lang.Object implements ResponseMXBean
ResponseMXBean MXBean interface.| Modifier and Type | Field and Description |
|---|---|
private ResponseStatistics |
responseStatistics |
| Constructor and Description |
|---|
ResponseMXBeanImpl() |
| 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> |
getResponseCodesToCountMap()
Returns statistics of response codes produces by the application.
|
void |
updateResponseStatistics(ResponseStatistics responseStatistics)
Update the statistics exposed by the MXBean.
|
private volatile ResponseStatistics responseStatistics
public void updateResponseStatistics(ResponseStatistics responseStatistics)
responseStatistics - public java.util.Map<java.lang.Integer,java.lang.Long> getResponseCodesToCountMap()
ResponseMXBeangetResponseCodesToCountMap in interface ResponseMXBeanpublic java.lang.Integer getLastResponseCode()
ResponseMXBeangetLastResponseCode in interface ResponseMXBean