Uses of Class
org.apache.hc.client5.http.cache.HttpCacheEntry
-
Packages that use HttpCacheEntry Package Description org.apache.hc.client5.http.cache Caching APIs for both the classic and the asynchronous HTTP transports.org.apache.hc.client5.http.impl.cache Caching API implementation for both the classic and the asynchronous HTTP transports. -
-
Uses of HttpCacheEntry in org.apache.hc.client5.http.cache
Fields in org.apache.hc.client5.http.cache declared as HttpCacheEntry Modifier and Type Field Description private HttpCacheEntry
HttpCacheStorageEntry. content
Methods in org.apache.hc.client5.http.cache that return HttpCacheEntry Modifier and Type Method Description HttpCacheEntry
HttpCacheCASOperation. execute(HttpCacheEntry existing)
Returns the new cache entry that should replace an existing one.HttpCacheEntry
HttpCacheStorageEntry. getContent()
HttpCacheEntry
HttpCacheStorage. getEntry(java.lang.String key)
Retrieves the cache entry stored under the given key or null if no entry exists under that key.Methods in org.apache.hc.client5.http.cache that return types with arguments of type HttpCacheEntry Modifier and Type Method Description java.util.Map<java.lang.String,HttpCacheEntry>
HttpCacheStorage. getEntries(java.util.Collection<java.lang.String> keys)
Retrieves multiple cache entries stored under the given keys.Methods in org.apache.hc.client5.http.cache with parameters of type HttpCacheEntry Modifier and Type Method Description HttpCacheEntry
HttpCacheCASOperation. execute(HttpCacheEntry existing)
Returns the new cache entry that should replace an existing one.org.apache.hc.core5.concurrent.Cancellable
HttpAsyncCacheStorage. putEntry(java.lang.String key, HttpCacheEntry entry, org.apache.hc.core5.concurrent.FutureCallback<java.lang.Boolean> callback)
Store a given cache entry under the given key.org.apache.hc.core5.concurrent.Cancellable
HttpAsyncCacheStorageAdaptor. putEntry(java.lang.String key, HttpCacheEntry entry, org.apache.hc.core5.concurrent.FutureCallback<java.lang.Boolean> callback)
void
HttpCacheStorage. putEntry(java.lang.String key, HttpCacheEntry entry)
Store a given cache entry under the given key.Method parameters in org.apache.hc.client5.http.cache with type arguments of type HttpCacheEntry Modifier and Type Method Description org.apache.hc.core5.concurrent.Cancellable
HttpAsyncCacheStorage. getEntries(java.util.Collection<java.lang.String> keys, org.apache.hc.core5.concurrent.FutureCallback<java.util.Map<java.lang.String,HttpCacheEntry>> callback)
Retrieves multiple cache entries stored under the given keys.org.apache.hc.core5.concurrent.Cancellable
HttpAsyncCacheStorageAdaptor. getEntries(java.util.Collection<java.lang.String> keys, org.apache.hc.core5.concurrent.FutureCallback<java.util.Map<java.lang.String,HttpCacheEntry>> callback)
org.apache.hc.core5.concurrent.Cancellable
HttpAsyncCacheStorage. getEntry(java.lang.String key, org.apache.hc.core5.concurrent.FutureCallback<HttpCacheEntry> callback)
Retrieves the cache entry stored under the given key or null if no entry exists under that key.org.apache.hc.core5.concurrent.Cancellable
HttpAsyncCacheStorageAdaptor. getEntry(java.lang.String key, org.apache.hc.core5.concurrent.FutureCallback<HttpCacheEntry> callback)
Constructors in org.apache.hc.client5.http.cache with parameters of type HttpCacheEntry Constructor Description HttpCacheStorageEntry(java.lang.String key, HttpCacheEntry content)
-
Uses of HttpCacheEntry in org.apache.hc.client5.http.impl.cache
Fields in org.apache.hc.client5.http.impl.cache declared as HttpCacheEntry Modifier and Type Field Description private HttpCacheEntry
Variant. entry
Fields in org.apache.hc.client5.http.impl.cache with type parameters of type HttpCacheEntry Modifier and Type Field Description private java.lang.ref.ReferenceQueue<HttpCacheEntry>
ManagedHttpCacheStorage. morque
Methods in org.apache.hc.client5.http.impl.cache that return HttpCacheEntry Modifier and Type Method Description HttpCacheEntry
BasicHttpCache. createCacheEntry(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, java.time.Instant requestSent, java.time.Instant responseReceived)
HttpCacheEntry
CacheUpdateHandler. createCacheEntry(org.apache.hc.core5.http.HttpRequest request, org.apache.hc.core5.http.HttpResponse originResponse, org.apache.hc.core5.util.ByteArrayBuffer content, java.time.Instant requestSent, java.time.Instant responseReceived)
Creates a cache entry for the given request, origin response message and response content.HttpCacheEntry
HttpCache. createCacheEntry(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, java.time.Instant requestSent, java.time.Instant responseReceived)
Store aHttpResponse
in the cache if possible, and returnHttpCacheEntry
BasicHttpCache. getCacheEntry(org.apache.hc.core5.http.HttpHost host, org.apache.hc.core5.http.HttpRequest request)
HttpCacheEntry
HttpCache. getCacheEntry(org.apache.hc.core5.http.HttpHost host, org.apache.hc.core5.http.HttpRequest request)
Retrieve matchingHttpCacheEntry
from the cache if it exists.HttpCacheEntry
AbstractSerializingCacheStorage. getEntry(java.lang.String key)
HttpCacheEntry
BasicHttpCacheStorage. getEntry(java.lang.String url)
Gets an entry from the cache, if it existsprivate HttpCacheEntry
DefaultCacheInvalidator. getEntry(HttpCacheStorage storage, java.lang.String cacheKey)
HttpCacheEntry
ManagedHttpCacheStorage. getEntry(java.lang.String url)
HttpCacheEntry
Variant. getEntry()
HttpCacheEntry
BasicHttpCache. updateCacheEntry(org.apache.hc.core5.http.HttpHost host, org.apache.hc.core5.http.HttpRequest request, HttpCacheEntry stale, org.apache.hc.core5.http.HttpResponse originResponse, java.time.Instant requestSent, java.time.Instant responseReceived)
HttpCacheEntry
CacheUpdateHandler. updateCacheEntry(java.lang.String requestId, HttpCacheEntry entry, java.time.Instant requestDate, java.time.Instant responseDate, org.apache.hc.core5.http.HttpResponse response)
Update the entry with the new information from the response.HttpCacheEntry
HttpCache. updateCacheEntry(org.apache.hc.core5.http.HttpHost host, org.apache.hc.core5.http.HttpRequest request, HttpCacheEntry stale, org.apache.hc.core5.http.HttpResponse originResponse, java.time.Instant requestSent, java.time.Instant responseReceived)
Update aHttpCacheEntry
using a 304HttpResponse
.HttpCacheEntry
CacheUpdateHandler. updateParentCacheEntry(java.lang.String requestId, HttpCacheEntry existing, HttpCacheEntry entry, java.lang.String variantKey, java.lang.String variantCacheKey)
HttpCacheEntry
BasicHttpCache. updateVariantCacheEntry(org.apache.hc.core5.http.HttpHost host, org.apache.hc.core5.http.HttpRequest request, org.apache.hc.core5.http.HttpResponse originResponse, Variant variant, java.time.Instant requestSent, java.time.Instant responseReceived)
HttpCacheEntry
HttpCache. updateVariantCacheEntry(org.apache.hc.core5.http.HttpHost host, org.apache.hc.core5.http.HttpRequest request, org.apache.hc.core5.http.HttpResponse originResponse, Variant variant, java.time.Instant requestSent, java.time.Instant responseReceived)
Update a specificHttpCacheEntry
representing a cached variant using a 304HttpResponse
.Methods in org.apache.hc.client5.http.impl.cache that return types with arguments of type HttpCacheEntry Modifier and Type Method Description java.util.Map<java.lang.String,HttpCacheEntry>
AbstractSerializingCacheStorage. getEntries(java.util.Collection<java.lang.String> keys)
java.util.Map<java.lang.String,HttpCacheEntry>
BasicHttpCacheStorage. getEntries(java.util.Collection<java.lang.String> keys)
java.util.Map<java.lang.String,HttpCacheEntry>
ManagedHttpCacheStorage. getEntries(java.util.Collection<java.lang.String> keys)
Methods in org.apache.hc.client5.http.impl.cache with parameters of type HttpCacheEntry Modifier and Type Method Description boolean
CachedResponseSuitabilityChecker. allConditionalsMatch(org.apache.hc.core5.http.HttpRequest request, HttpCacheEntry entry, java.time.Instant now)
Check that conditionals that are part of this request matchT
ConditionalRequestBuilder. buildConditionalRequest(T request, HttpCacheEntry cacheEntry)
When aHttpCacheEntry
is stale but 'might' be used as a response to anHttpRequest
we will attempt to revalidate the entry with the origin.private boolean
CachedResponseSuitabilityChecker. cacheEntryDoesNotContainMethodAndEntity(HttpCacheEntry entry)
boolean
CachedResponseSuitabilityChecker. canCachedResponseBeUsed(org.apache.hc.core5.http.HttpHost host, org.apache.hc.core5.http.HttpRequest request, HttpCacheEntry entry, java.time.Instant now)
Determine if I can utilize aHttpCacheEntry
to respond to the givenHttpRequest
protected boolean
CacheValidityPolicy. contentLengthHeaderMatchesActualLength(HttpCacheEntry entry)
This matters for deciding whether the cache entry is valid to serve as a response.private boolean
CachedResponseSuitabilityChecker. entryIsNotA204Response(HttpCacheEntry entry)
private boolean
CachedResponseSuitabilityChecker. etagValidatorMatches(org.apache.hc.core5.http.HttpRequest request, HttpCacheEntry entry)
Check entry against If-None-Match(package private) boolean
CachingExecBase. explicitFreshnessRequest(org.apache.hc.core5.http.HttpRequest request, HttpCacheEntry entry, java.time.Instant now)
(package private) SimpleHttpResponse
CachingExecBase. generateCachedResponse(org.apache.hc.core5.http.HttpRequest request, org.apache.hc.core5.http.protocol.HttpContext context, HttpCacheEntry entry, java.time.Instant now)
java.lang.String
BasicHttpAsyncCache. generateKey(org.apache.hc.core5.http.HttpHost host, org.apache.hc.core5.http.HttpRequest request, HttpCacheEntry cacheEntry)
java.lang.String
BasicHttpCache. generateKey(org.apache.hc.core5.http.HttpHost host, org.apache.hc.core5.http.HttpRequest request, HttpCacheEntry cacheEntry)
java.lang.String
CacheKeyGenerator. generateKey(org.apache.hc.core5.http.HttpHost host, org.apache.hc.core5.http.HttpRequest request, HttpCacheEntry entry)
Computes a key for the givenHttpHost
andHttpRequest
that can be used as a unique identifier for cached resources.java.lang.String
HttpAsyncCache. generateKey(org.apache.hc.core5.http.HttpHost host, org.apache.hc.core5.http.HttpRequest request, HttpCacheEntry cacheEntry)
java.lang.String
HttpCache. generateKey(org.apache.hc.core5.http.HttpHost host, org.apache.hc.core5.http.HttpRequest request, HttpCacheEntry cacheEntry)
(package private) SimpleHttpResponse
CachedHttpResponseGenerator. generateNotModifiedResponse(HttpCacheEntry entry)
Generate a 304 - Not Modified response from theHttpCacheEntry
.(package private) SimpleHttpResponse
CachedHttpResponseGenerator. generateResponse(org.apache.hc.core5.http.HttpRequest request, HttpCacheEntry entry)
If it is legal to use cached content in response response to theHttpRequest
then generate anHttpResponse
based onHttpCacheEntry
.java.lang.String
CacheKeyGenerator. generateVariantKey(org.apache.hc.core5.http.HttpRequest req, HttpCacheEntry entry)
Computes a "variant key" from the headers of a given request that are covered by the Vary header of a given cache entry.protected long
CacheValidityPolicy. getAgeValue(HttpCacheEntry entry)
protected org.apache.hc.core5.util.TimeValue
CacheValidityPolicy. getApparentAge(HttpCacheEntry entry)
protected org.apache.hc.core5.util.TimeValue
CacheValidityPolicy. getCorrectedInitialAge(HttpCacheEntry entry)
protected org.apache.hc.core5.util.TimeValue
CacheValidityPolicy. getCorrectedReceivedAge(HttpCacheEntry entry)
org.apache.hc.core5.util.TimeValue
CacheValidityPolicy. getCurrentAge(HttpCacheEntry entry, java.time.Instant now)
org.apache.hc.core5.util.TimeValue
HttpByteArrayCacheEntrySerializer.NoAgeCacheValidityPolicy. getCurrentAge(HttpCacheEntry entry, java.time.Instant now)
org.apache.hc.core5.util.TimeValue
CacheValidityPolicy. getFreshnessLifetime(HttpCacheEntry entry)
org.apache.hc.core5.util.TimeValue
CacheValidityPolicy. getHeuristicFreshnessLifetime(HttpCacheEntry entry, float coefficient, org.apache.hc.core5.util.TimeValue defaultLifetime)
protected long
CacheValidityPolicy. getMaxAge(HttpCacheEntry entry)
protected org.apache.hc.core5.util.TimeValue
CacheValidityPolicy. getResidentTime(HttpCacheEntry entry, java.time.Instant now)
protected org.apache.hc.core5.util.TimeValue
CacheValidityPolicy. getResponseDelay(HttpCacheEntry entry)
org.apache.hc.core5.util.TimeValue
CacheValidityPolicy. getStaleness(HttpCacheEntry entry, java.time.Instant now)
private void
AsyncCachingExec. handleCacheHit(org.apache.hc.core5.http.HttpHost target, org.apache.hc.core5.http.HttpRequest request, org.apache.hc.core5.http.nio.AsyncEntityProducer entityProducer, AsyncExecChain.Scope scope, AsyncExecChain chain, AsyncExecCallback asyncExecCallback, HttpCacheEntry entry)
private org.apache.hc.core5.http.ClassicHttpResponse
CachingExec. handleCacheHit(org.apache.hc.core5.http.HttpHost target, org.apache.hc.core5.http.ClassicHttpRequest request, ExecChain.Scope scope, ExecChain chain, HttpCacheEntry entry)
(package private) SimpleHttpResponse
CachingExecBase. handleRevalidationFailure(org.apache.hc.core5.http.HttpRequest request, org.apache.hc.core5.http.protocol.HttpContext context, HttpCacheEntry entry, java.time.Instant now)
boolean
CacheValidityPolicy. hasCacheControlDirective(HttpCacheEntry entry, java.lang.String directive)
private boolean
CachedResponseSuitabilityChecker. hasUnsupportedCacheEntryForGet(org.apache.hc.core5.http.HttpRequest request, HttpCacheEntry entry)
(package private) static boolean
CacheInvalidatorBase. isAHeadCacheEntry(HttpCacheEntry parentCacheEntry)
private boolean
CachedResponseSuitabilityChecker. isFreshEnough(HttpCacheEntry entry, org.apache.hc.core5.http.HttpRequest request, java.time.Instant now)
boolean
CacheValidityPolicy. isResponseFresh(HttpCacheEntry entry, java.time.Instant now)
boolean
CacheValidityPolicy. isResponseHeuristicallyFresh(HttpCacheEntry entry, java.time.Instant now, float coefficient, org.apache.hc.core5.util.TimeValue defaultLifetime)
Decides if this response is fresh enough based Last-Modified and Date, if available.boolean
CacheValidityPolicy. isRevalidatable(HttpCacheEntry entry)
private void
ManagedHttpCacheStorage. keepResourceReference(HttpCacheEntry entry)
private boolean
CachedResponseSuitabilityChecker. lastModifiedValidatorMatches(org.apache.hc.core5.http.HttpRequest request, HttpCacheEntry entry, java.time.Instant now)
Check entry against If-Modified-Since, if If-Modified-Since is in the future it is invalid as per http://www.w3.org/Protocols/rfc2616/rfc2616-sec14.htmlboolean
CacheValidityPolicy. mayReturnStaleIfError(org.apache.hc.core5.http.HttpRequest request, HttpCacheEntry entry, java.time.Instant now)
boolean
CacheValidityPolicy. mayReturnStaleWhileRevalidating(HttpCacheEntry entry, java.time.Instant now)
private org.apache.hc.core5.http.Header[]
CacheUpdateHandler. mergeHeaders(HttpCacheEntry entry, org.apache.hc.core5.http.HttpResponse response)
boolean
CacheValidityPolicy. mustRevalidate(HttpCacheEntry entry)
private boolean
CachedResponseSuitabilityChecker. originInsistsOnFreshness(HttpCacheEntry entry)
boolean
CacheValidityPolicy. proxyRevalidate(HttpCacheEntry entry)
org.apache.hc.core5.concurrent.Cancellable
AbstractSerializingAsyncCacheStorage. putEntry(java.lang.String key, HttpCacheEntry entry, org.apache.hc.core5.concurrent.FutureCallback<java.lang.Boolean> callback)
void
AbstractSerializingCacheStorage. putEntry(java.lang.String key, HttpCacheEntry entry)
void
BasicHttpCacheStorage. putEntry(java.lang.String url, HttpCacheEntry entry)
Places a HttpCacheEntry in the cachevoid
ManagedHttpCacheStorage. putEntry(java.lang.String url, HttpCacheEntry entry)
(package private) static boolean
CacheInvalidatorBase. responseAndEntryEtagsDiffer(org.apache.hc.core5.http.HttpResponse response, HttpCacheEntry entry)
(package private) static boolean
CacheInvalidatorBase. responseDateOlderThanEntryDate(org.apache.hc.core5.http.HttpResponse response, HttpCacheEntry entry)
private boolean
CachedHttpResponseGenerator. responseShouldContainEntity(org.apache.hc.core5.http.HttpRequest request, HttpCacheEntry cacheEntry)
(package private) void
AsyncCachingExec. revalidateCacheEntry(org.apache.hc.core5.http.HttpHost target, org.apache.hc.core5.http.HttpRequest request, org.apache.hc.core5.http.nio.AsyncEntityProducer entityProducer, AsyncExecChain.Scope scope, AsyncExecChain chain, AsyncExecCallback asyncExecCallback, HttpCacheEntry cacheEntry)
(package private) org.apache.hc.core5.http.ClassicHttpResponse
CachingExec. revalidateCacheEntry(org.apache.hc.core5.http.HttpHost target, org.apache.hc.core5.http.ClassicHttpRequest request, ExecChain.Scope scope, ExecChain chain, HttpCacheEntry cacheEntry)
(package private) boolean
CachingExecBase. revalidationResponseIsTooOld(org.apache.hc.core5.http.HttpResponse backendResponse, HttpCacheEntry cacheEntry)
(package private) static boolean
CacheInvalidatorBase. shouldInvalidateHeadCacheEntry(org.apache.hc.core5.http.HttpRequest req, HttpCacheEntry parentCacheEntry)
(package private) boolean
CachingExecBase. shouldSendNotModifiedResponse(org.apache.hc.core5.http.HttpRequest request, HttpCacheEntry responseEntry)
(package private) boolean
CachingExecBase. staleResponseNotAllowed(org.apache.hc.core5.http.HttpRequest request, HttpCacheEntry entry, java.time.Instant now)
(package private) org.apache.hc.core5.concurrent.Cancellable
BasicHttpAsyncCache. storeEntry(java.lang.String cacheKey, HttpCacheEntry entry, org.apache.hc.core5.concurrent.FutureCallback<java.lang.Boolean> callback)
(package private) void
BasicHttpCache. storeEntry(java.lang.String cacheKey, HttpCacheEntry entry)
(package private) org.apache.hc.core5.concurrent.Cancellable
BasicHttpAsyncCache. storeInCache(java.lang.String cacheKey, org.apache.hc.core5.http.HttpHost host, org.apache.hc.core5.http.HttpRequest request, HttpCacheEntry entry, org.apache.hc.core5.concurrent.FutureCallback<java.lang.Boolean> callback)
(package private) void
BasicHttpCache. storeInCache(java.lang.String cacheKey, org.apache.hc.core5.http.HttpHost host, org.apache.hc.core5.http.HttpRequest request, HttpCacheEntry entry)
(package private) org.apache.hc.core5.concurrent.Cancellable
BasicHttpAsyncCache. storeVariantEntry(java.lang.String cacheKey, org.apache.hc.core5.http.HttpHost host, org.apache.hc.core5.http.HttpRequest req, HttpCacheEntry entry, org.apache.hc.core5.concurrent.FutureCallback<java.lang.Boolean> callback)
(package private) void
BasicHttpCache. storeVariantEntry(java.lang.String cacheKey, org.apache.hc.core5.http.HttpHost host, org.apache.hc.core5.http.HttpRequest req, HttpCacheEntry entry)
(package private) SimpleHttpResponse
CachingExecBase. unvalidatedCacheHit(org.apache.hc.core5.http.HttpRequest request, org.apache.hc.core5.http.protocol.HttpContext context, HttpCacheEntry entry)
org.apache.hc.core5.concurrent.Cancellable
BasicHttpAsyncCache. updateCacheEntry(org.apache.hc.core5.http.HttpHost host, org.apache.hc.core5.http.HttpRequest request, HttpCacheEntry stale, org.apache.hc.core5.http.HttpResponse originResponse, java.time.Instant requestSent, java.time.Instant responseReceived, org.apache.hc.core5.concurrent.FutureCallback<HttpCacheEntry> callback)
HttpCacheEntry
BasicHttpCache. updateCacheEntry(org.apache.hc.core5.http.HttpHost host, org.apache.hc.core5.http.HttpRequest request, HttpCacheEntry stale, org.apache.hc.core5.http.HttpResponse originResponse, java.time.Instant requestSent, java.time.Instant responseReceived)
HttpCacheEntry
CacheUpdateHandler. updateCacheEntry(java.lang.String requestId, HttpCacheEntry entry, java.time.Instant requestDate, java.time.Instant responseDate, org.apache.hc.core5.http.HttpResponse response)
Update the entry with the new information from the response.org.apache.hc.core5.concurrent.Cancellable
HttpAsyncCache. updateCacheEntry(org.apache.hc.core5.http.HttpHost host, org.apache.hc.core5.http.HttpRequest request, HttpCacheEntry stale, org.apache.hc.core5.http.HttpResponse originResponse, java.time.Instant requestSent, java.time.Instant responseReceived, org.apache.hc.core5.concurrent.FutureCallback<HttpCacheEntry> callback)
Update aHttpCacheEntry
using a 304HttpResponse
.HttpCacheEntry
HttpCache. updateCacheEntry(org.apache.hc.core5.http.HttpHost host, org.apache.hc.core5.http.HttpRequest request, HttpCacheEntry stale, org.apache.hc.core5.http.HttpResponse originResponse, java.time.Instant requestSent, java.time.Instant responseReceived)
Update aHttpCacheEntry
using a 304HttpResponse
.HttpCacheEntry
CacheUpdateHandler. updateParentCacheEntry(java.lang.String requestId, HttpCacheEntry existing, HttpCacheEntry entry, java.lang.String variantKey, java.lang.String variantCacheKey)
Method parameters in org.apache.hc.client5.http.impl.cache with type arguments of type HttpCacheEntry Modifier and Type Method Description org.apache.hc.core5.concurrent.Cancellable
BasicHttpAsyncCache. createCacheEntry(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, java.time.Instant requestSent, java.time.Instant responseReceived, org.apache.hc.core5.concurrent.FutureCallback<HttpCacheEntry> callback)
org.apache.hc.core5.concurrent.Cancellable
HttpAsyncCache. createCacheEntry(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, java.time.Instant requestSent, java.time.Instant responseReceived, org.apache.hc.core5.concurrent.FutureCallback<HttpCacheEntry> callback)
Store aHttpResponse
in the cache if possible, and returnorg.apache.hc.core5.concurrent.Cancellable
BasicHttpAsyncCache. getCacheEntry(org.apache.hc.core5.http.HttpHost host, org.apache.hc.core5.http.HttpRequest request, org.apache.hc.core5.concurrent.FutureCallback<HttpCacheEntry> callback)
org.apache.hc.core5.concurrent.Cancellable
HttpAsyncCache. getCacheEntry(org.apache.hc.core5.http.HttpHost host, org.apache.hc.core5.http.HttpRequest request, org.apache.hc.core5.concurrent.FutureCallback<HttpCacheEntry> callback)
Retrieve matchingHttpCacheEntry
from the cache if it existsorg.apache.hc.core5.concurrent.Cancellable
AbstractSerializingAsyncCacheStorage. getEntries(java.util.Collection<java.lang.String> keys, org.apache.hc.core5.concurrent.FutureCallback<java.util.Map<java.lang.String,HttpCacheEntry>> callback)
org.apache.hc.core5.concurrent.Cancellable
AbstractSerializingAsyncCacheStorage. getEntry(java.lang.String key, org.apache.hc.core5.concurrent.FutureCallback<HttpCacheEntry> callback)
protected boolean
CacheMap. removeEldestEntry(java.util.Map.Entry<java.lang.String,HttpCacheEntry> eldest)
org.apache.hc.core5.concurrent.Cancellable
BasicHttpAsyncCache. updateCacheEntry(org.apache.hc.core5.http.HttpHost host, org.apache.hc.core5.http.HttpRequest request, HttpCacheEntry stale, org.apache.hc.core5.http.HttpResponse originResponse, java.time.Instant requestSent, java.time.Instant responseReceived, org.apache.hc.core5.concurrent.FutureCallback<HttpCacheEntry> callback)
org.apache.hc.core5.concurrent.Cancellable
HttpAsyncCache. updateCacheEntry(org.apache.hc.core5.http.HttpHost host, org.apache.hc.core5.http.HttpRequest request, HttpCacheEntry stale, org.apache.hc.core5.http.HttpResponse originResponse, java.time.Instant requestSent, java.time.Instant responseReceived, org.apache.hc.core5.concurrent.FutureCallback<HttpCacheEntry> callback)
Update aHttpCacheEntry
using a 304HttpResponse
.org.apache.hc.core5.concurrent.Cancellable
BasicHttpAsyncCache. updateVariantCacheEntry(org.apache.hc.core5.http.HttpHost host, org.apache.hc.core5.http.HttpRequest request, org.apache.hc.core5.http.HttpResponse originResponse, Variant variant, java.time.Instant requestSent, java.time.Instant responseReceived, org.apache.hc.core5.concurrent.FutureCallback<HttpCacheEntry> callback)
org.apache.hc.core5.concurrent.Cancellable
HttpAsyncCache. updateVariantCacheEntry(org.apache.hc.core5.http.HttpHost host, org.apache.hc.core5.http.HttpRequest request, org.apache.hc.core5.http.HttpResponse originResponse, Variant variant, java.time.Instant requestSent, java.time.Instant responseReceived, org.apache.hc.core5.concurrent.FutureCallback<HttpCacheEntry> callback)
Update a specificHttpCacheEntry
representing a cached variant using a 304HttpResponse
.Constructors in org.apache.hc.client5.http.impl.cache with parameters of type HttpCacheEntry Constructor Description ResourceReference(HttpCacheEntry entry, java.lang.ref.ReferenceQueue<HttpCacheEntry> q)
Variant(java.lang.String cacheKey, HttpCacheEntry entry)
Constructor parameters in org.apache.hc.client5.http.impl.cache with type arguments of type HttpCacheEntry Constructor Description ResourceReference(HttpCacheEntry entry, java.lang.ref.ReferenceQueue<HttpCacheEntry> q)
-