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 Object
      implements HttpTransportMetrics

  Default implementation of `HttpTransportMetrics`.
  Since:
    4.0

- - ### Constructor Summary

    Constructors
    Constructor and Description
    `BasicHttpTransportMetrics()`

  - ### Method Summary

    All Methods Instance Methods Concrete Methods
    Modifier and Type | Method and Description
    --- | ---
    `long` | `getBytesTransferred()` Returns the number of bytes transferred.
    `void` | `incrementBytesTransferred(long count)`

    - ### Methods inherited from class java.lang.Object

      `clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait`

- - ### Constructor Detail

    - #### BasicHttpTransportMetrics

          public BasicHttpTransportMetrics()

  - ### Method Detail

    - #### getBytesTransferred

          public long getBytesTransferred()

      Description copied from interface: `HttpTransportMetrics`
      Returns the number of bytes transferred.
      Specified by:
        `getBytesTransferred` in interface `HttpTransportMetrics`

    - #### incrementBytesTransferred

          public void incrementBytesTransferred(long count)

Copyright © 2005–2021 The Apache Software Foundation. All rights reserved.