Package org.apache.hc.core5.http.impl
Class BasicEndpointDetails
- java.lang.Object
-
- org.apache.hc.core5.http.EndpointDetails
-
- org.apache.hc.core5.http.impl.BasicEndpointDetails
-
- All Implemented Interfaces:
HttpConnectionMetrics
public final class BasicEndpointDetails extends EndpointDetails
Basic HTTP connection endpoint details.- Since:
- 5.0
-
-
Field Summary
Fields Modifier and Type Field Description private HttpConnectionMetricsmetrics
-
Constructor Summary
Constructors Constructor Description BasicEndpointDetails(java.net.SocketAddress remoteAddress, java.net.SocketAddress localAddress, HttpConnectionMetrics metrics, Timeout socketTimeout)
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description longgetReceivedBytesCount()Gets the number of bytes transferred over the connection, 0 if not available.longgetRequestCount()Gets the number of requests transferred over the connection, 0 if not available.longgetResponseCount()Gets the number of responses transferred over the connection, 0 if not available.longgetSentBytesCount()Gets the number of bytes transferred over the connection, 0 if not available.-
Methods inherited from class org.apache.hc.core5.http.EndpointDetails
getLocalAddress, getRemoteAddress, getSocketTimeout, toString
-
-
-
-
Field Detail
-
metrics
private final HttpConnectionMetrics metrics
-
-
Constructor Detail
-
BasicEndpointDetails
public BasicEndpointDetails(java.net.SocketAddress remoteAddress, java.net.SocketAddress localAddress, HttpConnectionMetrics metrics, Timeout socketTimeout)
-
-
Method Detail
-
getRequestCount
public long getRequestCount()
Description copied from class:EndpointDetailsGets the number of requests transferred over the connection, 0 if not available.- Specified by:
getRequestCountin interfaceHttpConnectionMetrics- Specified by:
getRequestCountin classEndpointDetails
-
getResponseCount
public long getResponseCount()
Description copied from class:EndpointDetailsGets the number of responses transferred over the connection, 0 if not available.- Specified by:
getResponseCountin interfaceHttpConnectionMetrics- Specified by:
getResponseCountin classEndpointDetails
-
getSentBytesCount
public long getSentBytesCount()
Description copied from class:EndpointDetailsGets the number of bytes transferred over the connection, 0 if not available.- Specified by:
getSentBytesCountin interfaceHttpConnectionMetrics- Specified by:
getSentBytesCountin classEndpointDetails
-
getReceivedBytesCount
public long getReceivedBytesCount()
Description copied from class:EndpointDetailsGets the number of bytes transferred over the connection, 0 if not available.- Specified by:
getReceivedBytesCountin interfaceHttpConnectionMetrics- Specified by:
getReceivedBytesCountin classEndpointDetails
-
-