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 Object implements HttpTransportMetrics
Default implementation of
HttpTransportMetrics.-
Constructor Summary
Constructors Constructor Description HttpTransportMetricsImpl() -
Method Summary
Modifier and Type Method Description longgetBytesTransferred()Returns the number of bytes trasferred.voidincrementBytesTransferred(long count)voidreset()Resets the countsvoidsetBytesTransferred(long count)
-
Constructor Details
-
HttpTransportMetricsImpl
public HttpTransportMetricsImpl()
-
-
Method Details
-
getBytesTransferred
public long getBytesTransferred()Description copied from interface:HttpTransportMetricsReturns the number of bytes trasferred.- Specified by:
getBytesTransferredin interfaceHttpTransportMetrics
-
setBytesTransferred
public void setBytesTransferred(long count) -
incrementBytesTransferred
public void incrementBytesTransferred(long count) -
reset
public void reset()Description copied from interface:HttpTransportMetricsResets the counts- Specified by:
resetin interfaceHttpTransportMetrics
-