Class CachingHttpAsyncClientBuilder
java.lang.Object
org.apache.hc.client5.http.impl.async.HttpAsyncClientBuilder
org.apache.hc.client5.http.impl.cache.CachingHttpAsyncClientBuilder
Builder for
CloseableHttpAsyncClient
instances capable of client-side caching.- Since:
- 5.0
-
Field Summary
FieldsModifier and TypeFieldDescriptionprivate CacheConfig
private File
private boolean
private HttpAsyncCacheInvalidator
private ResourceFactory
private SchedulingStrategy
private HttpAsyncCacheStorage
-
Constructor Summary
Constructors -
Method Summary
Modifier and TypeMethodDescriptioncreate()
protected void
customizeExecChain
(org.apache.hc.core5.http.config.NamedElementChain<AsyncExecChainHandler> execChainDefinition) Request exec chain customization and extension.setCacheConfig
(CacheConfig cacheConfig) setCacheDir
(File cacheDir) setDeleteCache
(boolean deleteCache) setHttpCacheInvalidator
(HttpAsyncCacheInvalidator cacheInvalidator) setHttpCacheStorage
(HttpAsyncCacheStorage storage) setHttpCacheStorage
(HttpCacheStorage storage) setResourceFactory
(ResourceFactory resourceFactory) setSchedulingStrategy
(SchedulingStrategy schedulingStrategy) Methods inherited from class org.apache.hc.client5.http.impl.async.HttpAsyncClientBuilder
addCloseable, addExecInterceptorAfter, addExecInterceptorBefore, addExecInterceptorFirst, addExecInterceptorLast, addRequestInterceptorFirst, addRequestInterceptorLast, addResponseInterceptorFirst, addResponseInterceptorLast, build, disableAuthCaching, disableAutomaticRetries, disableConnectionState, disableCookieManagement, disableRedirectHandling, evictExpiredConnections, evictIdleConnections, replaceExecInterceptor, setCharCodingConfig, setConnectionManager, setConnectionManagerShared, setConnectionReuseStrategy, setDefaultAuthSchemeRegistry, setDefaultCookieSpecRegistry, setDefaultCookieStore, setDefaultCredentialsProvider, setDefaultHeaders, setDefaultRequestConfig, setH2Config, setHttp1Config, setIOReactorConfig, setIoReactorExceptionCallback, setIoSessionDecorator, setIOSessionListener, setKeepAliveStrategy, setProxy, setProxyAuthenticationStrategy, setProxySelector, setRedirectStrategy, setRetryStrategy, setRoutePlanner, setSchemePortResolver, setTargetAuthenticationStrategy, setThreadFactory, setUserAgent, setUserTokenHandler, setVersionPolicy, useSystemProperties
-
Field Details
-
resourceFactory
-
storage
-
cacheDir
-
schedulingStrategy
-
cacheConfig
-
httpCacheInvalidator
-
deleteCache
private boolean deleteCache
-
-
Constructor Details
-
CachingHttpAsyncClientBuilder
protected CachingHttpAsyncClientBuilder()
-
-
Method Details
-
create
-
setResourceFactory
-
setHttpCacheStorage
-
setHttpCacheStorage
-
setCacheDir
-
setSchedulingStrategy
public final CachingHttpAsyncClientBuilder setSchedulingStrategy(SchedulingStrategy schedulingStrategy) -
setCacheConfig
-
setHttpCacheInvalidator
public final CachingHttpAsyncClientBuilder setHttpCacheInvalidator(HttpAsyncCacheInvalidator cacheInvalidator) -
setDeleteCache
-
customizeExecChain
protected void customizeExecChain(org.apache.hc.core5.http.config.NamedElementChain<AsyncExecChainHandler> execChainDefinition) Description copied from class:HttpAsyncClientBuilder
Request exec chain customization and extension.For internal use.
- Overrides:
customizeExecChain
in classHttpAsyncClientBuilder
-