Class BasicHttpTransportMetrics
java.lang.Object
org.apache.hc.core5.http.impl.BasicHttpTransportMetrics
- All Implemented Interfaces:
HttpTransportMetrics
- Direct Known Subclasses:
BasicH2TransportMetrics
Default implementation of
HttpTransportMetrics.- Since:
- 4.0
-
Field Summary
Fields -
Constructor Summary
Constructors -
Method Summary
Modifier and TypeMethodDescriptionlongGets the number of bytes transferred.voidincrementBytesTransferred(long count)
-
Field Details
-
bytesTransferred
-
-
Constructor Details
-
BasicHttpTransportMetrics
public BasicHttpTransportMetrics()
-
-
Method Details
-
getBytesTransferred
public long getBytesTransferred()Description copied from interface:HttpTransportMetricsGets the number of bytes transferred.- Specified by:
getBytesTransferredin interfaceHttpTransportMetrics- Returns:
- the number of bytes transferred.
-
incrementBytesTransferred
public void incrementBytesTransferred(long count)
-