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)
Deprecated.
Do not use.
|
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. |
default Resource |
ResourceFactory.generate(String requestId,
String eTag,
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 an
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)
Deprecated.
Do not use.
|
Resource |
HeapResourceFactory.copy(String requestId,
Resource resource)
Deprecated.
Do not use.
|
protected abstract void |
AbstractSerializingCacheStorage.delete(String storageKey) |
HttpCacheStorageEntry |
HttpByteArrayCacheEntrySerializer.deserialize(byte[] serializedObject)
Deserializes a byte array representation of an HTTP cache storage entry into an instance of
HttpCacheStorageEntry . |
HttpCacheStorageEntry |
ByteArrayCacheEntrySerializer.deserialize(byte[] serializedObject)
Deprecated.
|
HttpCacheStorageEntry |
NoopCacheEntrySerializer.deserialize(HttpCacheStorageEntry cacheEntry) |
Resource |
FileResourceFactory.generate(String requestId,
byte[] content) |
Resource |
FileResourceFactory.generate(String requestId,
byte[] content,
int off,
int len) |
Resource |
FileResourceFactory.generate(String requestId,
String eTag,
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 |
AbstractSerializingAsyncCacheStorage.getStorageObject(CAS cas) |
protected abstract T |
AbstractSerializingCacheStorage.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) |
byte[] |
HttpByteArrayCacheEntrySerializer.serialize(HttpCacheStorageEntry storageEntry)
Serializes an HttpCacheStorageEntry object into a byte array using an HTTP-like format.
|
HttpCacheStorageEntry |
NoopCacheEntrySerializer.serialize(HttpCacheStorageEntry cacheEntry) |
byte[] |
ByteArrayCacheEntrySerializer.serialize(HttpCacheStorageEntry cacheEntry)
Deprecated.
|
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 |
MemcachedOperationCancellationException
Signals memcached operation cancellation.
|
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[] |
MemcachedHttpCacheStorage.getStorageObject(net.spy.memcached.CASValue<Object> casValue) |
protected byte[] |
MemcachedHttpAsyncCacheStorage.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.