public final class BasicEndpointDetails extends EndpointDetails
Constructor and Description |
---|
BasicEndpointDetails(SocketAddress remoteAddress,
SocketAddress localAddress,
HttpConnectionMetrics metrics,
Timeout socketTimeout) |
Modifier and Type | Method and Description |
---|---|
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, toString
public BasicEndpointDetails(SocketAddress remoteAddress, SocketAddress localAddress, HttpConnectionMetrics metrics, Timeout socketTimeout)
public long getRequestCount()
EndpointDetails
getRequestCount
in interface HttpConnectionMetrics
getRequestCount
in class EndpointDetails
public long getResponseCount()
EndpointDetails
getResponseCount
in interface HttpConnectionMetrics
getResponseCount
in class EndpointDetails
public long getSentBytesCount()
EndpointDetails
getSentBytesCount
in interface HttpConnectionMetrics
getSentBytesCount
in class EndpointDetails
public long getReceivedBytesCount()
EndpointDetails
getReceivedBytesCount
in interface HttpConnectionMetrics
getReceivedBytesCount
in class EndpointDetails
Copyright © 2005–2021 The Apache Software Foundation. All rights reserved.