Class CachingHttpAsyncClients
java.lang.Object
org.apache.hc.client5.http.impl.cache.CachingHttpAsyncClients
Factory methods for
CloseableHttpAsyncClient
instances
capable of client-side caching.- Since:
- 5.0
-
Constructor Summary
Constructors -
Method Summary
Modifier and TypeMethodDescriptionstatic CloseableHttpAsyncClient
createFileBound
(File cacheDir) CreatesCloseableHttpAsyncClient
instance that uses a file system bound response cache.static CloseableHttpAsyncClient
createHttp2FileBound
(File cacheDir) Creates HTTP/2CloseableHttpAsyncClient
instance that uses a file system bound response cache.static CloseableHttpAsyncClient
Creates HTTP/2CloseableHttpAsyncClient
instance that uses a memory bound response cache.static CloseableHttpAsyncClient
CreatesCloseableHttpAsyncClient
instance that uses a memory bound response cache.custom()
Creates builder object for construction of customCloseableHttpAsyncClient
instances.static CachingH2AsyncClientBuilder
Creates builder object for construction of custom HTTP/2CloseableHttpAsyncClient
instances.
-
Constructor Details
-
CachingHttpAsyncClients
private CachingHttpAsyncClients()
-
-
Method Details
-
custom
Creates builder object for construction of customCloseableHttpAsyncClient
instances. -
createMemoryBound
CreatesCloseableHttpAsyncClient
instance that uses a memory bound response cache. -
createFileBound
CreatesCloseableHttpAsyncClient
instance that uses a file system bound response cache.- Parameters:
cacheDir
- location of response cache.
-
customHttp2
Creates builder object for construction of custom HTTP/2CloseableHttpAsyncClient
instances. -
createHttp2MemoryBound
Creates HTTP/2CloseableHttpAsyncClient
instance that uses a memory bound response cache. -
createHttp2FileBound
Creates HTTP/2CloseableHttpAsyncClient
instance that uses a file system bound response cache.- Parameters:
cacheDir
- location of response cache.
-