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