Class CachingHttpAsyncClients
- java.lang.Object
-
- org.apache.hc.client5.http.impl.cache.CachingHttpAsyncClients
-
public final class CachingHttpAsyncClients extends java.lang.ObjectFactory methods forCloseableHttpAsyncClientinstances capable of client-side caching.- Since:
- 5.0
-
-
Constructor Summary
Constructors Modifier Constructor Description privateCachingHttpAsyncClients()
-
Method Summary
All Methods Static Methods Concrete Methods Modifier and Type Method Description static CloseableHttpAsyncClientcreateFileBound(java.io.File cacheDir)CreatesCloseableHttpAsyncClientinstance that uses a file system bound response cache.static CloseableHttpAsyncClientcreateHttp2FileBound(java.io.File cacheDir)Creates HTTP/2CloseableHttpAsyncClientinstance that uses a file system bound response cache.static CloseableHttpAsyncClientcreateHttp2MemoryBound()Creates HTTP/2CloseableHttpAsyncClientinstance that uses a memory bound response cache.static CloseableHttpAsyncClientcreateMemoryBound()CreatesCloseableHttpAsyncClientinstance that uses a memory bound response cache.static CachingHttpAsyncClientBuildercustom()Creates builder object for construction of customCloseableHttpAsyncClientinstances.static CachingH2AsyncClientBuildercustomHttp2()Creates builder object for construction of custom HTTP/2CloseableHttpAsyncClientinstances.
-
-
-
Method Detail
-
custom
public static CachingHttpAsyncClientBuilder custom()
Creates builder object for construction of customCloseableHttpAsyncClientinstances.
-
createMemoryBound
public static CloseableHttpAsyncClient createMemoryBound()
CreatesCloseableHttpAsyncClientinstance that uses a memory bound response cache.
-
createFileBound
public static CloseableHttpAsyncClient createFileBound(java.io.File cacheDir)
CreatesCloseableHttpAsyncClientinstance 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/2CloseableHttpAsyncClientinstances.
-
createHttp2MemoryBound
public static CloseableHttpAsyncClient createHttp2MemoryBound()
Creates HTTP/2CloseableHttpAsyncClientinstance that uses a memory bound response cache.
-
createHttp2FileBound
public static CloseableHttpAsyncClient createHttp2FileBound(java.io.File cacheDir)
Creates HTTP/2CloseableHttpAsyncClientinstance that uses a file system bound response cache.- Parameters:
cacheDir- location of response cache.
-
-