java.lang.Object | |
↳ | org.apache.http.impl.HttpConnectionMetricsImpl |
Default implementation of the HttpConnectionMetrics
interface.
Constants | |||||||||||
---|---|---|---|---|---|---|---|---|---|---|---|
String | RECEIVED_BYTES_COUNT | ||||||||||
String | REQUEST_COUNT | ||||||||||
String | RESPONSE_COUNT | ||||||||||
String | SENT_BYTES_COUNT |
Public Constructors | |||||||||||
---|---|---|---|---|---|---|---|---|---|---|---|
Public Methods | |||||||||||
---|---|---|---|---|---|---|---|---|---|---|---|
Return the value for the specified metric.
| |||||||||||
Returns the number of bytes transferred over the connection,
0 if not available.
| |||||||||||
Returns the number of requests transferred over the connection,
0 if not available.
| |||||||||||
Returns the number of responses transferred over the connection,
0 if not available.
| |||||||||||
Returns the number of bytes transferred over the connection,
0 if not available.
| |||||||||||
Resets the counts
| |||||||||||
[Expand]
Inherited Methods | |||||||||||
---|---|---|---|---|---|---|---|---|---|---|---|
From class
java.lang.Object
| |||||||||||
From interface
org.apache.http.HttpConnectionMetrics
|
Return the value for the specified metric.
metricName | the name of the metric to query. |
---|
null
if the metric cannot not found.
Returns the number of bytes transferred over the connection, 0 if not available.
Returns the number of requests transferred over the connection, 0 if not available.
Returns the number of responses transferred over the connection, 0 if not available.
Returns the number of bytes transferred over the connection, 0 if not available.
Resets the counts