public final class BasicHttpConnectionMetrics extends Object implements HttpConnectionMetrics
HttpConnectionMetrics interface.| Constructor and Description |
|---|
BasicHttpConnectionMetrics(HttpTransportMetrics inTransportMetric,
HttpTransportMetrics outTransportMetric) |
| Modifier and Type | Method and Description |
|---|---|
long |
getReceivedBytesCount()
Gets the number of bytes transferred over the connection,
0 if not available.
|
long |
getRequestCount()
Gets the number of requests transferred over the connection,
0 if not available.
|
long |
getResponseCount()
Gets the number of responses transferred over the connection,
0 if not available.
|
long |
getSentBytesCount()
Gets the number of bytes transferred over the connection,
0 if not available.
|
void |
incrementRequestCount() |
void |
incrementResponseCount() |
public BasicHttpConnectionMetrics(HttpTransportMetrics inTransportMetric, HttpTransportMetrics outTransportMetric)
public long getReceivedBytesCount()
HttpConnectionMetricsgetReceivedBytesCount in interface HttpConnectionMetricspublic long getSentBytesCount()
HttpConnectionMetricsgetSentBytesCount in interface HttpConnectionMetricspublic long getRequestCount()
HttpConnectionMetricsgetRequestCount in interface HttpConnectionMetricspublic void incrementRequestCount()
public long getResponseCount()
HttpConnectionMetricsgetResponseCount in interface HttpConnectionMetricspublic void incrementResponseCount()
Copyright © 2005–2021 The Apache Software Foundation. All rights reserved.