| 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. | 
| org.apache.hc.client5.http.impl.cache.ehcache | Ehcache based caching backend implementation. | 
| org.apache.hc.client5.http.impl.cache.memcached | Memcached based caching backend
 implementation. | 
| Modifier and Type | Method and Description | 
|---|---|
| Resource | ResourceFactory. copy(String requestId,
    Resource resource)Clones an existing  Resource. | 
| HttpCacheStorageEntry | HttpCacheEntrySerializer. deserialize(T serializedObject)Deserializes a cache entry from its serialized representation. | 
| HttpCacheEntry | HttpCacheCASOperation. execute(HttpCacheEntry existing)Returns the new cache entry that should replace an existing one. | 
| Resource | ResourceFactory. generate(String requestId,
        byte[] content)Creates a  Resourcefrom a given response body. | 
| Resource | ResourceFactory. generate(String requestId,
        byte[] content,
        int off,
        int len)Creates a  Resourcefrom a given response body. | 
| abstract byte[] | Resource. get()Returns resource content as a byte array. | 
| Map<String,HttpCacheEntry> | HttpCacheStorage. getEntries(Collection<String> keys)Retrieves multiple cache entries stored under the given keys. | 
| HttpCacheEntry | HttpCacheStorage. getEntry(String key)Retrieves the cache entry stored under the given key
 or null if no entry exists under that key. | 
| InputStream | Resource. getInputStream()Returns resource content as a  InputStream. | 
| void | HttpCacheStorage. putEntry(String key,
        HttpCacheEntry entry)Store a given cache entry under the given key. | 
| void | HttpCacheStorage. removeEntry(String key)Deletes/invalidates/removes any cache entries currently
 stored under the given key. | 
| T | HttpCacheEntrySerializer. serialize(HttpCacheStorageEntry entry)Serializes the given entry. | 
| void | HttpCacheStorage. updateEntry(String key,
           HttpCacheCASOperation casOperation)Atomically applies the given callback to processChallenge an existing cache
 entry under a given key. | 
| Modifier and Type | Method and Description | 
|---|---|
| protected abstract Map<String,T> | AbstractSerializingCacheStorage. bulkRestore(Collection<String> storageKeys) | 
| Resource | HeapResourceFactory. copy(String requestId,
    Resource resource) | 
| Resource | FileResourceFactory. copy(String requestId,
    Resource resource) | 
| protected abstract void | AbstractSerializingCacheStorage. delete(String storageKey) | 
| HttpCacheStorageEntry | HttpByteArrayCacheEntrySerializer. deserialize(byte[] serializedObject) | 
| HttpCacheStorageEntry | ByteArrayCacheEntrySerializer. deserialize(byte[] serializedObject) | 
| HttpCacheStorageEntry | NoopCacheEntrySerializer. deserialize(HttpCacheStorageEntry cacheEntry) | 
| Resource | FileResourceFactory. generate(String requestId,
        byte[] content) | 
| Resource | FileResourceFactory. generate(String requestId,
        byte[] content,
        int off,
        int len) | 
| byte[] | HeapResource. get() | 
| byte[] | FileResource. get() | 
| Map<String,HttpCacheEntry> | AbstractSerializingCacheStorage. getEntries(Collection<String> keys) | 
| Map<String,HttpCacheEntry> | BasicHttpCacheStorage. getEntries(Collection<String> keys) | 
| Map<String,HttpCacheEntry> | ManagedHttpCacheStorage. getEntries(Collection<String> keys) | 
| HttpCacheEntry | AbstractSerializingCacheStorage. getEntry(String key) | 
| HttpCacheEntry | BasicHttpCacheStorage. getEntry(String url)Gets an entry from the cache, if it exists | 
| HttpCacheEntry | ManagedHttpCacheStorage. getEntry(String url) | 
| protected abstract CAS | AbstractSerializingCacheStorage. getForUpdateCAS(String storageKey) | 
| InputStream | FileResource. getInputStream() | 
| protected abstract T | AbstractSerializingCacheStorage. getStorageObject(CAS cas) | 
| protected abstract T | AbstractSerializingAsyncCacheStorage. getStorageObject(CAS cas) | 
| void | AbstractSerializingCacheStorage. putEntry(String key,
        HttpCacheEntry entry) | 
| void | BasicHttpCacheStorage. putEntry(String url,
        HttpCacheEntry entry)Places a HttpCacheEntry in the cache | 
| void | ManagedHttpCacheStorage. putEntry(String url,
        HttpCacheEntry entry) | 
| void | AbstractSerializingCacheStorage. removeEntry(String key) | 
| void | BasicHttpCacheStorage. removeEntry(String url)Removes a HttpCacheEntry from the cache | 
| void | ManagedHttpCacheStorage. removeEntry(String url) | 
| protected abstract T | AbstractSerializingCacheStorage. restore(String storageKey) | 
| HttpCacheStorageEntry | NoopCacheEntrySerializer. serialize(HttpCacheStorageEntry cacheEntry) | 
| byte[] | HttpByteArrayCacheEntrySerializer. serialize(HttpCacheStorageEntry httpCacheEntry) | 
| byte[] | ByteArrayCacheEntrySerializer. serialize(HttpCacheStorageEntry cacheEntry) | 
| protected abstract void | AbstractSerializingCacheStorage. store(String storageKey,
     T storageObject) | 
| protected abstract boolean | AbstractSerializingCacheStorage. updateCAS(String storageKey,
         CAS cas,
         T storageObject) | 
| void | AbstractSerializingCacheStorage. updateEntry(String key,
           HttpCacheCASOperation casOperation) | 
| void | BasicHttpCacheStorage. updateEntry(String url,
           HttpCacheCASOperation casOperation) | 
| void | ManagedHttpCacheStorage. updateEntry(String url,
           HttpCacheCASOperation casOperation) | 
| Modifier and Type | Method and Description | 
|---|---|
| protected Map<String,T> | EhcacheHttpCacheStorage. bulkRestore(Collection<String> storageKeys) | 
| protected void | EhcacheHttpCacheStorage. delete(String storageKey) | 
| protected T | EhcacheHttpCacheStorage. getForUpdateCAS(String storageKey) | 
| protected T | EhcacheHttpCacheStorage. getStorageObject(T element) | 
| protected T | EhcacheHttpCacheStorage. restore(String storageKey) | 
| protected void | EhcacheHttpCacheStorage. store(String storageKey,
     T storageObject) | 
| protected boolean | EhcacheHttpCacheStorage. updateCAS(String storageKey,
         T oldStorageObject,
         T storageObject) | 
| Modifier and Type | Class and Description | 
|---|---|
| class  | MemcachedOperationTimeoutExceptionSignals memcached operation timeout. | 
| Modifier and Type | Method and Description | 
|---|---|
| protected Map<String,byte[]> | MemcachedHttpCacheStorage. bulkRestore(Collection<String> storageKeys) | 
| protected void | MemcachedHttpCacheStorage. delete(String storageKey) | 
| protected net.spy.memcached.CASValue<Object> | MemcachedHttpCacheStorage. getForUpdateCAS(String storageKey) | 
| protected byte[] | MemcachedHttpAsyncCacheStorage. getStorageObject(net.spy.memcached.CASValue<Object> casValue) | 
| protected byte[] | MemcachedHttpCacheStorage. getStorageObject(net.spy.memcached.CASValue<Object> casValue) | 
| protected byte[] | MemcachedHttpCacheStorage. restore(String storageKey) | 
| protected void | MemcachedHttpCacheStorage. store(String storageKey,
     byte[] storageObject) | 
| protected boolean | MemcachedHttpCacheStorage. updateCAS(String storageKey,
         net.spy.memcached.CASValue<Object> casValue,
         byte[] storageObject) | 
Copyright © 1999–2021 The Apache Software Foundation. All rights reserved.