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 HttpConnectionMetrics
public abstract long getResponseCount()
getResponseCount
in interface HttpConnectionMetrics
public abstract long getSentBytesCount()
getSentBytesCount
in interface HttpConnectionMetrics
public abstract long getReceivedBytesCount()
getReceivedBytesCount
in interface HttpConnectionMetrics
public Timeout getSocketTimeout()
Copyright © 2005–2021 The Apache Software Foundation. All rights reserved.