public abstract class EndpointDetails extends Object implements HttpConnectionMetrics
| 限定符 | 构造器和说明 |
|---|---|
protected |
EndpointDetails(SocketAddress remoteAddress,
SocketAddress localAddress,
Timeout socketTimeout) |
| 限定符和类型 | 方法和说明 |
|---|---|
SocketAddress |
getLocalAddress() |
abstract long |
getReceivedBytesCount()
Gets the number of bytes transferred over the connection,
0 if not available.
|
SocketAddress |
getRemoteAddress() |
abstract long |
getRequestCount()
Gets the number of requests transferred over the connection,
0 if not available.
|
abstract long |
getResponseCount()
Gets the number of responses transferred over the connection,
0 if not available.
|
abstract long |
getSentBytesCount()
Gets the number of bytes transferred over the connection,
0 if not available.
|
Timeout |
getSocketTimeout()
Gets the socket timeout.
|
String |
toString() |
protected EndpointDetails(SocketAddress remoteAddress, SocketAddress localAddress, Timeout socketTimeout)
public SocketAddress getRemoteAddress()
public SocketAddress getLocalAddress()
public abstract long getRequestCount()
getRequestCount 在接口中 HttpConnectionMetricspublic abstract long getResponseCount()
getResponseCount 在接口中 HttpConnectionMetricspublic abstract long getSentBytesCount()
getSentBytesCount 在接口中 HttpConnectionMetricspublic abstract long getReceivedBytesCount()
getReceivedBytesCount 在接口中 HttpConnectionMetricspublic Timeout getSocketTimeout()
Copyright © 2023. All rights reserved.