public abstract class EndpointDetails extends Object implements HttpConnectionMetrics
| Modifier | Constructor and Description |
|---|---|
protected |
EndpointDetails(SocketAddress remoteAddress,
SocketAddress localAddress,
Timeout socketTimeout) |
| Modifier and Type | Method and Description |
|---|---|
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 in interface HttpConnectionMetricspublic abstract long getResponseCount()
getResponseCount in interface HttpConnectionMetricspublic abstract long getSentBytesCount()
getSentBytesCount in interface HttpConnectionMetricspublic abstract long getReceivedBytesCount()
getReceivedBytesCount in interface HttpConnectionMetricspublic Timeout getSocketTimeout()
Copyright © 2005–2022 The Apache Software Foundation. All rights reserved.