Top Description Fields Constructors Methods
org.apache.hc.core5.http.impl

public final Class BasicHttpConnectionMetrics

extends Object
implements HttpConnectionMetrics
Class Inheritance
All Implemented Interfaces
org.apache.hc.core5.http.HttpConnectionMetrics
Imports
java.util.concurrent.atomic.AtomicLong, org.apache.hc.core5.http.HttpConnectionMetrics, org.apache.hc.core5.http.io.HttpTransportMetrics

Default implementation of the HttpConnectionMetrics interface.
Since
4.0

Field Summary

Modifier and TypeField and Description
private final HttpTransportMetrics
private final HttpTransportMetrics
private final AtomicLong
private final AtomicLong

Constructor Summary

AccessConstructor and Description
public
BasicHttpConnectionMetrics(final HttpTransportMetrics inTransportMetric, final HttpTransportMetrics outTransportMetric)

Method Summary

Modifier and TypeMethod and Description
public long
getReceivedBytesCount()

Implements org.apache.hc.core5.http.HttpConnectionMetrics.getReceivedBytesCount.

Gets the number of bytes transferred over the connection, 0 if not available.
public long
getRequestCount()

Implements org.apache.hc.core5.http.HttpConnectionMetrics.getRequestCount.

Gets the number of requests transferred over the connection, 0 if not available.
public long
getResponseCount()

Implements org.apache.hc.core5.http.HttpConnectionMetrics.getResponseCount.

Gets the number of responses transferred over the connection, 0 if not available.
public long
getSentBytesCount()

Implements org.apache.hc.core5.http.HttpConnectionMetrics.getSentBytesCount.

Gets the number of bytes transferred over the connection, 0 if not available.
public void
public void
Inherited from java.lang.Object:
cloneequalsfinalizegetClasshashCodenotifynotifyAlltoStringwaitwaitwait

Field Detail

inTransportMetricback to summary
private final HttpTransportMetrics inTransportMetric
outTransportMetricback to summary
private final HttpTransportMetrics outTransportMetric
requestCountback to summary
private final AtomicLong requestCount
responseCountback to summary
private final AtomicLong responseCount

Constructor Detail

BasicHttpConnectionMetricsback to summary
public BasicHttpConnectionMetrics(final HttpTransportMetrics inTransportMetric, final HttpTransportMetrics outTransportMetric)

Method Detail

getReceivedBytesCountback to summary
public long getReceivedBytesCount()

Implements org.apache.hc.core5.http.HttpConnectionMetrics.getReceivedBytesCount.

Doc from org.apache.hc.core5.http.HttpConnectionMetrics.getReceivedBytesCount.

Gets the number of bytes transferred over the connection, 0 if not available.

Annotations
@Override
getRequestCountback to summary
public long getRequestCount()

Implements org.apache.hc.core5.http.HttpConnectionMetrics.getRequestCount.

Doc from org.apache.hc.core5.http.HttpConnectionMetrics.getRequestCount.

Gets the number of requests transferred over the connection, 0 if not available.

Annotations
@Override
getResponseCountback to summary
public long getResponseCount()

Implements org.apache.hc.core5.http.HttpConnectionMetrics.getResponseCount.

Doc from org.apache.hc.core5.http.HttpConnectionMetrics.getResponseCount.

Gets the number of responses transferred over the connection, 0 if not available.

Annotations
@Override
getSentBytesCountback to summary
public long getSentBytesCount()

Implements org.apache.hc.core5.http.HttpConnectionMetrics.getSentBytesCount.

Doc from org.apache.hc.core5.http.HttpConnectionMetrics.getSentBytesCount.

Gets the number of bytes transferred over the connection, 0 if not available.

Annotations
@Override
incrementRequestCountback to summary
public void incrementRequestCount()
incrementResponseCountback to summary
public void incrementResponseCount()