Package org.apache.hc.core5.http.impl
Class BasicHttpTransportMetrics
- java.lang.Object
-
- org.apache.hc.core5.http.impl.BasicHttpTransportMetrics
-
- All Implemented Interfaces:
HttpTransportMetrics
- Direct Known Subclasses:
BasicH2TransportMetrics
public class BasicHttpTransportMetrics extends java.lang.Object implements HttpTransportMetrics
Default implementation ofHttpTransportMetrics
.- Since:
- 4.0
-
-
Field Summary
Fields Modifier and Type Field Description private java.util.concurrent.atomic.AtomicLong
bytesTransferred
-
Constructor Summary
Constructors Constructor Description BasicHttpTransportMetrics()
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description long
getBytesTransferred()
Returns the number of bytes transferred.void
incrementBytesTransferred(long count)
-
-
-
Method Detail
-
getBytesTransferred
public long getBytesTransferred()
Description copied from interface:HttpTransportMetrics
Returns the number of bytes transferred.- Specified by:
getBytesTransferred
in interfaceHttpTransportMetrics
-
incrementBytesTransferred
public void incrementBytesTransferred(long count)
-
-