public final class BasicEndpointDetails extends EndpointDetails
| Constructor and Description |
|---|
BasicEndpointDetails(SocketAddress remoteAddress,
SocketAddress localAddress,
HttpConnectionMetrics metrics,
Timeout socketTimeout) |
| 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.
|
getLocalAddress, getRemoteAddress, getSocketTimeout, toStringpublic BasicEndpointDetails(SocketAddress remoteAddress, SocketAddress localAddress, HttpConnectionMetrics metrics, Timeout socketTimeout)
public long getRequestCount()
EndpointDetailsgetRequestCount in interface HttpConnectionMetricsgetRequestCount in class EndpointDetailspublic long getResponseCount()
EndpointDetailsgetResponseCount in interface HttpConnectionMetricsgetResponseCount in class EndpointDetailspublic long getSentBytesCount()
EndpointDetailsgetSentBytesCount in interface HttpConnectionMetricsgetSentBytesCount in class EndpointDetailspublic long getReceivedBytesCount()
EndpointDetailsgetReceivedBytesCount in interface HttpConnectionMetricsgetReceivedBytesCount in class EndpointDetailsCopyright © 2005–2021 The Apache Software Foundation. All rights reserved.