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
Basic HTTP connection endpoint details.
- Since:
- 5.0
-
Field Summary
Fields -
Constructor Summary
ConstructorsConstructorDescriptionBasicEndpointDetails
(SocketAddress remoteAddress, SocketAddress localAddress, HttpConnectionMetrics metrics, Timeout socketTimeout) -
Method Summary
Modifier and TypeMethodDescriptionlong
Gets the number of bytes transferred over the connection, 0 if not available.long
Gets the number of requests transferred over the connection, 0 if not available.long
Gets the number of responses transferred over the connection, 0 if not available.long
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 Details
-
metrics
-
-
Constructor Details
-
BasicEndpointDetails
public BasicEndpointDetails(SocketAddress remoteAddress, SocketAddress localAddress, HttpConnectionMetrics metrics, Timeout socketTimeout)
-
-
Method Details
-
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
-