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 TypeMethodDescriptionlongGets the number of bytes transferred over the connection, 0 if not available.longGets the number of requests transferred over the connection, 0 if not available.longGets the number of responses transferred over the connection, 0 if not available.longGets 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: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
-