Package org.apache.hc.core5.http
Class EndpointDetails
java.lang.Object
org.apache.hc.core5.http.EndpointDetails
- All Implemented Interfaces:
HttpConnectionMetrics
- Direct Known Subclasses:
BasicEndpointDetails
HTTP connection endpoint details.
- Since:
- 5.0
-
Field Summary
FieldsModifier and TypeFieldDescriptionprivate final SocketAddress
private final SocketAddress
private final Timeout
-
Constructor Summary
ConstructorsModifierConstructorDescriptionprotected
EndpointDetails
(SocketAddress remoteAddress, SocketAddress localAddress, Timeout socketTimeout) -
Method Summary
Modifier and TypeMethodDescriptionabstract long
Gets the number of bytes transferred over the connection, 0 if not available.abstract long
Gets the number of requests transferred over the connection, 0 if not available.abstract long
Gets the number of responses transferred over the connection, 0 if not available.abstract long
Gets the number of bytes transferred over the connection, 0 if not available.Gets the socket timeout.toString()
-
Field Details
-
remoteAddress
-
localAddress
-
socketTimeout
-
-
Constructor Details
-
EndpointDetails
protected EndpointDetails(SocketAddress remoteAddress, SocketAddress localAddress, Timeout socketTimeout)
-
-
Method Details
-
getRemoteAddress
-
getLocalAddress
-
getRequestCount
public abstract long getRequestCount()Gets the number of requests transferred over the connection, 0 if not available.- Specified by:
getRequestCount
in interfaceHttpConnectionMetrics
-
getResponseCount
public abstract long getResponseCount()Gets the number of responses transferred over the connection, 0 if not available.- Specified by:
getResponseCount
in interfaceHttpConnectionMetrics
-
getSentBytesCount
public abstract long getSentBytesCount()Gets the number of bytes transferred over the connection, 0 if not available.- Specified by:
getSentBytesCount
in interfaceHttpConnectionMetrics
-
getReceivedBytesCount
public abstract long getReceivedBytesCount()Gets the number of bytes transferred over the connection, 0 if not available.- Specified by:
getReceivedBytesCount
in interfaceHttpConnectionMetrics
-
getSocketTimeout
Gets the socket timeout.- Returns:
- the socket timeout.
-
toString
-