Package org.apache.http.impl.io
Class HttpTransportMetricsImpl
- java.lang.Object
-
- org.apache.http.impl.io.HttpTransportMetricsImpl
-
- All Implemented Interfaces:
HttpTransportMetrics
public class HttpTransportMetricsImpl extends java.lang.Object implements HttpTransportMetrics
Default implementation ofHttpTransportMetrics
.- Since:
- 4.0
-
-
Constructor Summary
Constructors Constructor Description HttpTransportMetricsImpl()
-
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)
void
reset()
Resets the countsvoid
setBytesTransferred(long count)
-
-
-
Method Detail
-
getBytesTransferred
public long getBytesTransferred()
Description copied from interface:HttpTransportMetrics
Returns the number of bytes transferred.- Specified by:
getBytesTransferred
in interfaceHttpTransportMetrics
-
setBytesTransferred
public void setBytesTransferred(long count)
-
incrementBytesTransferred
public void incrementBytesTransferred(long count)
-
reset
public void reset()
Description copied from interface:HttpTransportMetrics
Resets the counts- Specified by:
reset
in interfaceHttpTransportMetrics
-
-