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 CloseableHttpAsyncClientcreateFileBound(File cacheDir) CreatesCloseableHttpAsyncClientinstance that uses a file system bound response cache.static CloseableHttpAsyncClientcreateHttp2FileBound(File cacheDir) Creates HTTP/2CloseableHttpAsyncClientinstance that uses a file system bound response cache.static CloseableHttpAsyncClientCreates HTTP/2CloseableHttpAsyncClientinstance that uses a memory bound response cache.static CloseableHttpAsyncClientCreatesCloseableHttpAsyncClientinstance that uses a memory bound response cache.custom()Creates builder object for construction of customCloseableHttpAsyncClientinstances.static CachingH2AsyncClientBuilderCreates builder object for construction of custom HTTP/2CloseableHttpAsyncClientinstances.
-
Constructor Details
-
CachingHttpAsyncClients
private CachingHttpAsyncClients()
-
-
Method Details
-
custom
Creates builder object for construction of customCloseableHttpAsyncClientinstances. -
createMemoryBound
CreatesCloseableHttpAsyncClientinstance that uses a memory bound response cache. -
createFileBound
CreatesCloseableHttpAsyncClientinstance that uses a file system bound response cache.- Parameters:
cacheDir- location of response cache.
-
customHttp2
Creates builder object for construction of custom HTTP/2CloseableHttpAsyncClientinstances. -
createHttp2MemoryBound
Creates HTTP/2CloseableHttpAsyncClientinstance that uses a memory bound response cache. -
createHttp2FileBound
Creates HTTP/2CloseableHttpAsyncClientinstance that uses a file system bound response cache.- Parameters:
cacheDir- location of response cache.
-