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 HttpConnectionMetrics
metrics
-
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 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.-
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:EndpointDetails
Gets the number of requests transferred over the connection, 0 if not available.- Specified by:
getRequestCount
in interfaceHttpConnectionMetrics
- Specified by:
getRequestCount
in classEndpointDetails
-
getResponseCount
public long getResponseCount()
Description copied from class:EndpointDetails
Gets the number of responses transferred over the connection, 0 if not available.- Specified by:
getResponseCount
in interfaceHttpConnectionMetrics
- Specified by:
getResponseCount
in classEndpointDetails
-
getSentBytesCount
public long getSentBytesCount()
Description copied from class:EndpointDetails
Gets the number of bytes transferred over the connection, 0 if not available.- Specified by:
getSentBytesCount
in interfaceHttpConnectionMetrics
- Specified by:
getSentBytesCount
in classEndpointDetails
-
getReceivedBytesCount
public long getReceivedBytesCount()
Description copied from class:EndpointDetails
Gets the number of bytes transferred over the connection, 0 if not available.- Specified by:
getReceivedBytesCount
in interfaceHttpConnectionMetrics
- Specified by:
getReceivedBytesCount
in classEndpointDetails
-
-