public final class BasicHttpConnectionMetrics extends Object implements HttpConnectionMetrics
HttpConnectionMetrics interface.| 构造器和说明 |
|---|
BasicHttpConnectionMetrics(HttpTransportMetrics inTransportMetric,
HttpTransportMetrics outTransportMetric) |
| 限定符和类型 | 方法和说明 |
|---|---|
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 在接口中 HttpConnectionMetricspublic long getSentBytesCount()
HttpConnectionMetricsgetSentBytesCount 在接口中 HttpConnectionMetricspublic long getRequestCount()
HttpConnectionMetricsgetRequestCount 在接口中 HttpConnectionMetricspublic void incrementRequestCount()
public long getResponseCount()
HttpConnectionMetricsgetResponseCount 在接口中 HttpConnectionMetricspublic void incrementResponseCount()
Copyright © 2023. All rights reserved.