public final class CachingHttpAsyncClients extends Object
CloseableHttpAsyncClient
instances
capable of client-side caching.Modifier and Type | Method and Description |
---|---|
static CloseableHttpAsyncClient |
createFileBound(File cacheDir)
Creates
CloseableHttpAsyncClient instance that uses a file system
bound response cache. |
static CloseableHttpAsyncClient |
createHttp2FileBound(File cacheDir)
Creates HTTP/2
CloseableHttpAsyncClient instance that uses a file system
bound response cache. |
static CloseableHttpAsyncClient |
createHttp2MemoryBound()
Creates HTTP/2
CloseableHttpAsyncClient instance that uses a memory bound
response cache. |
static CloseableHttpAsyncClient |
createMemoryBound()
Creates
CloseableHttpAsyncClient instance that uses a memory bound
response cache. |
static CachingHttpAsyncClientBuilder |
custom()
Creates builder object for construction of custom
CloseableHttpAsyncClient instances. |
static CachingH2AsyncClientBuilder |
customHttp2()
Creates builder object for construction of custom HTTP/2
CloseableHttpAsyncClient instances. |
public static CachingHttpAsyncClientBuilder custom()
CloseableHttpAsyncClient
instances.public static CloseableHttpAsyncClient createMemoryBound()
CloseableHttpAsyncClient
instance that uses a memory bound
response cache.public static CloseableHttpAsyncClient createFileBound(File cacheDir)
CloseableHttpAsyncClient
instance that uses a file system
bound response cache.cacheDir
- location of response cache.public static CachingH2AsyncClientBuilder customHttp2()
CloseableHttpAsyncClient
instances.public static CloseableHttpAsyncClient createHttp2MemoryBound()
CloseableHttpAsyncClient
instance that uses a memory bound
response cache.public static CloseableHttpAsyncClient createHttp2FileBound(File cacheDir)
CloseableHttpAsyncClient
instance that uses a file system
bound response cache.cacheDir
- location of response cache.Copyright © 2010–2021 The Apache Software Foundation. All rights reserved.