org.apache.hc.client5.http.impl.cache

## Class CachingExecBase

- java.lang.Object
- - org.apache.hc.client5.http.impl.cache.CachingExecBase

-     public class CachingExecBase
      extends Object

- - ### Method Summary

    Methods
    Modifier and Type | Method and Description
    --- | ---
    `long` | `getCacheHits()` Reports the number of times that the cache successfully responded to an `HttpRequest` without contacting the origin server.
    `long` | `getCacheMisses()` Reports the number of times that the cache contacted the origin server because it had no appropriate response cached.
    `long` | `getCacheUpdates()` Reports the number of times that the cache was able to satisfy a response by revalidating an existing but stale cache entry.

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

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

- - ### Method Detail

    - #### getCacheHits

          public long getCacheHits()

      Reports the number of times that the cache successfully responded to an `HttpRequest` without contacting the origin server.
      Returns:
        the number of cache hits

    - #### getCacheMisses

          public long getCacheMisses()

      Reports the number of times that the cache contacted the origin server because it had no appropriate response cached.
      Returns:
        the number of cache misses

    - #### getCacheUpdates

          public long getCacheUpdates()

      Reports the number of times that the cache was able to satisfy a response by revalidating an existing but stale cache entry.
      Returns:
        the number of cache revalidations

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