org.apache.hc.core5.http

## Interface HttpConnectionMetrics

- All Known Implementing Classes:
    BasicEndpointDetails, BasicHttpConnectionMetrics, EndpointDetails

      public interface HttpConnectionMetrics

  The point of access to the statistics of an `HttpConnection`.
  Since:
    4.0

- - ### Method Summary

    Methods
    Modifier and Type | Method and Description
    --- | ---
    `long` | `getReceivedBytesCount()` Gets the number of bytes transferred over the connection, 0 if not available.
    `long` | `getRequestCount()` Gets the number of requests transferred over the connection, 0 if not available.
    `long` | `getResponseCount()` Gets the number of responses transferred over the connection, 0 if not available.
    `long` | `getSentBytesCount()` Gets the number of bytes transferred over the connection, 0 if not available.

- - ### Method Detail

    - #### getRequestCount

          long getRequestCount()

      Gets the number of requests transferred over the connection, 0 if not available.

    - #### getResponseCount

          long getResponseCount()

      Gets the number of responses transferred over the connection, 0 if not available.

    - #### getSentBytesCount

          long getSentBytesCount()

      Gets the number of bytes transferred over the connection, 0 if not available.

    - #### getReceivedBytesCount

          long getReceivedBytesCount()

      Gets the number of bytes transferred over the connection, 0 if not available.

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