Class CachingExecBase
java.lang.Object
org.apache.hc.client5.http.impl.cache.CachingExecBase
-
Method Summary
Modifier and TypeMethodDescriptionlongReports the number of times that the cache successfully responded to anHttpRequestwithout contacting the origin server.longReports the number of times that the cache contacted the origin server because it had no appropriate response cached.longReports the number of times that the cache was able to satisfy a response by revalidating an existing but stale cache entry.
-
Method Details
-
getCacheHits
public long getCacheHits()Reports the number of times that the cache successfully responded to anHttpRequestwithout 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
-