Class CachingExecBase

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

public class CachingExecBase extends Object
  • Method Summary

    Modifier and Type
    Method
    Description
    long
    Reports the number of times that the cache successfully responded to an HttpRequest without contacting the origin server.
    long
    Reports the number of times that the cache contacted the origin server because it had no appropriate response cached.
    long
    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 Object

    clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
  • Method Details

    • 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