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
Resource from a given response body. |
Resource |
ResourceFactory.generate(String requestId,
byte[] content,
int off,
int len)
Creates a
Resource from 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 |
FileResourceFactory.copy(String requestId,
Resource resource) |
Resource |
HeapResourceFactory.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[] |
FileResource.get() |
byte[] |
HeapResource.get() |
Map<String,HttpCacheEntry> |
ManagedHttpCacheStorage.getEntries(Collection<String> keys) |
Map<String,HttpCacheEntry> |
AbstractSerializingCacheStorage.getEntries(Collection<String> keys) |
Map<String,HttpCacheEntry> |
BasicHttpCacheStorage.getEntries(Collection<String> keys) |
HttpCacheEntry |
ManagedHttpCacheStorage.getEntry(String url) |
HttpCacheEntry |
AbstractSerializingCacheStorage.getEntry(String key) |
HttpCacheEntry |
BasicHttpCacheStorage.getEntry(String url)
Gets an entry from the cache, if it exists
|
protected abstract CAS |
AbstractSerializingCacheStorage.getForUpdateCAS(String storageKey) |
InputStream |
FileResource.getInputStream() |
protected abstract T |
AbstractSerializingAsyncCacheStorage.getStorageObject(CAS cas) |
protected abstract T |
AbstractSerializingCacheStorage.getStorageObject(CAS cas) |
void |
ManagedHttpCacheStorage.putEntry(String url,
HttpCacheEntry entry) |
void |
AbstractSerializingCacheStorage.putEntry(String key,
HttpCacheEntry entry) |
void |
BasicHttpCacheStorage.putEntry(String url,
HttpCacheEntry entry)
Places a HttpCacheEntry in the cache
|
void |
ManagedHttpCacheStorage.removeEntry(String url) |
void |
AbstractSerializingCacheStorage.removeEntry(String key) |
void |
BasicHttpCacheStorage.removeEntry(String url)
Removes a HttpCacheEntry from the cache
|
protected abstract T |
AbstractSerializingCacheStorage.restore(String storageKey) |
byte[] |
HttpByteArrayCacheEntrySerializer.serialize(HttpCacheStorageEntry httpCacheEntry) |
HttpCacheStorageEntry |
NoopCacheEntrySerializer.serialize(HttpCacheStorageEntry cacheEntry) |
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 |
ManagedHttpCacheStorage.updateEntry(String url,
HttpCacheCASOperation casOperation) |
void |
AbstractSerializingCacheStorage.updateEntry(String key,
HttpCacheCASOperation casOperation) |
void |
BasicHttpCacheStorage.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 |
MemcachedOperationTimeoutException
Signals 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 © 2010–2022 The Apache Software Foundation. All rights reserved.