Interface HttpAsyncCache
- All Known Implementing Classes:
BasicHttpAsyncCache
interface HttpAsyncCache
-
Method Summary
Modifier and TypeMethodDescriptionorg.apache.hc.core5.concurrent.CancellableevictInvalidatedEntries(org.apache.hc.core5.http.HttpHost host, org.apache.hc.core5.http.HttpRequest request, org.apache.hc.core5.http.HttpResponse response, org.apache.hc.core5.concurrent.FutureCallback<Boolean> callback) EvictsHttpCacheEntrys invalidated by the given message exchange.org.apache.hc.core5.concurrent.CancellablegetVariants(CacheHit hit, org.apache.hc.core5.concurrent.FutureCallback<Collection<CacheHit>> callback) Retrieves variantHttpCacheEntrys for the given hit.org.apache.hc.core5.concurrent.Cancellablematch(org.apache.hc.core5.http.HttpHost host, org.apache.hc.core5.http.HttpRequest request, org.apache.hc.core5.concurrent.FutureCallback<CacheMatch> callback) Returns a result with either a fully matchingHttpCacheEntrya partial match with a list of known variants or null if no match could be found.org.apache.hc.core5.concurrent.Cancellablestore(org.apache.hc.core5.http.HttpHost host, org.apache.hc.core5.http.HttpRequest request, org.apache.hc.core5.http.HttpResponse originResponse, org.apache.hc.core5.util.ByteArrayBuffer content, Instant requestSent, Instant responseReceived, org.apache.hc.core5.concurrent.FutureCallback<CacheHit> callback) StoresHttpRequest/HttpResponseexchange details in the cache.org.apache.hc.core5.concurrent.CancellablestoreFromNegotiated(CacheHit negotiated, org.apache.hc.core5.http.HttpHost host, org.apache.hc.core5.http.HttpRequest request, org.apache.hc.core5.http.HttpResponse originResponse, Instant requestSent, Instant responseReceived, org.apache.hc.core5.concurrent.FutureCallback<CacheHit> callback) org.apache.hc.core5.concurrent.Cancellableupdate(CacheHit stale, org.apache.hc.core5.http.HttpHost host, org.apache.hc.core5.http.HttpRequest request, org.apache.hc.core5.http.HttpResponse originResponse, Instant requestSent, Instant responseReceived, org.apache.hc.core5.concurrent.FutureCallback<CacheHit> callback) UpdatesHttpCacheEntryusing details from a 304HttpResponseand updates the root entry if the given cache entry represents a variant.
-
Method Details
-
match
org.apache.hc.core5.concurrent.Cancellable match(org.apache.hc.core5.http.HttpHost host, org.apache.hc.core5.http.HttpRequest request, org.apache.hc.core5.concurrent.FutureCallback<CacheMatch> callback) Returns a result with either a fully matchingHttpCacheEntrya partial match with a list of known variants or null if no match could be found. -
getVariants
org.apache.hc.core5.concurrent.Cancellable getVariants(CacheHit hit, org.apache.hc.core5.concurrent.FutureCallback<Collection<CacheHit>> callback) Retrieves variantHttpCacheEntrys for the given hit. -
store
org.apache.hc.core5.concurrent.Cancellable store(org.apache.hc.core5.http.HttpHost host, org.apache.hc.core5.http.HttpRequest request, org.apache.hc.core5.http.HttpResponse originResponse, org.apache.hc.core5.util.ByteArrayBuffer content, Instant requestSent, Instant responseReceived, org.apache.hc.core5.concurrent.FutureCallback<CacheHit> callback) StoresHttpRequest/HttpResponseexchange details in the cache. -
update
org.apache.hc.core5.concurrent.Cancellable update(CacheHit stale, org.apache.hc.core5.http.HttpHost host, org.apache.hc.core5.http.HttpRequest request, org.apache.hc.core5.http.HttpResponse originResponse, Instant requestSent, Instant responseReceived, org.apache.hc.core5.concurrent.FutureCallback<CacheHit> callback) UpdatesHttpCacheEntryusing details from a 304HttpResponseand updates the root entry if the given cache entry represents a variant. -
storeFromNegotiated
org.apache.hc.core5.concurrent.Cancellable storeFromNegotiated(CacheHit negotiated, org.apache.hc.core5.http.HttpHost host, org.apache.hc.core5.http.HttpRequest request, org.apache.hc.core5.http.HttpResponse originResponse, Instant requestSent, Instant responseReceived, org.apache.hc.core5.concurrent.FutureCallback<CacheHit> callback) -
evictInvalidatedEntries
org.apache.hc.core5.concurrent.Cancellable evictInvalidatedEntries(org.apache.hc.core5.http.HttpHost host, org.apache.hc.core5.http.HttpRequest request, org.apache.hc.core5.http.HttpResponse response, org.apache.hc.core5.concurrent.FutureCallback<Boolean> callback) EvictsHttpCacheEntrys invalidated by the given message exchange.
-