public final class BasicEndpointDetails extends EndpointDetails
| 构造器和说明 |
|---|
BasicEndpointDetails(SocketAddress remoteAddress,
SocketAddress localAddress,
HttpConnectionMetrics metrics,
Timeout socketTimeout) |
| 限定符和类型 | 方法和说明 |
|---|---|
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.
|
getLocalAddress, getRemoteAddress, getSocketTimeout, toStringpublic BasicEndpointDetails(SocketAddress remoteAddress, SocketAddress localAddress, HttpConnectionMetrics metrics, Timeout socketTimeout)
public long getRequestCount()
EndpointDetailsgetRequestCount 在接口中 HttpConnectionMetricsgetRequestCount 在类中 EndpointDetailspublic long getResponseCount()
EndpointDetailsgetResponseCount 在接口中 HttpConnectionMetricsgetResponseCount 在类中 EndpointDetailspublic long getSentBytesCount()
EndpointDetailsgetSentBytesCount 在接口中 HttpConnectionMetricsgetSentBytesCount 在类中 EndpointDetailspublic long getReceivedBytesCount()
EndpointDetailsgetReceivedBytesCount 在接口中 HttpConnectionMetricsgetReceivedBytesCount 在类中 EndpointDetailsCopyright © 2023. All rights reserved.