Class CachingHttpAsyncClientBuilder
java.lang.Object
org.apache.hc.client5.http.impl.async.HttpAsyncClientBuilder
org.apache.hc.client5.http.impl.cache.CachingHttpAsyncClientBuilder
public class CachingHttpAsyncClientBuilder
extends org.apache.hc.client5.http.impl.async.HttpAsyncClientBuilder
Builder for
CloseableHttpAsyncClient
instances capable of client-side caching.- Since:
- 5.0
-
Constructor Summary
Constructors -
Method Summary
Modifier and TypeMethodDescriptionprotected Function<org.apache.hc.core5.http.protocol.HttpContext, org.apache.hc.client5.http.protocol.HttpClientContext> create()protected voidcustomizeExecChain(org.apache.hc.core5.http.config.NamedElementChain<org.apache.hc.client5.http.async.AsyncExecChainHandler> execChainDefinition) setCacheConfig(CacheConfig cacheConfig) setCacheDir(File cacheDir) setDeleteCache(boolean deleteCache) setHttpCacheInvalidator(HttpAsyncCacheInvalidator cacheInvalidator) Deprecated.Do not use.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, disableContentCompression, disableCookieManagement, disableRedirectHandling, disableRequestPriority, evictExpiredConnections, evictIdleConnections, getConnManager, replaceExecInterceptor, setCharCodingConfig, setConnectionManager, setConnectionManagerShared, setConnectionReuseStrategy, setContentDecoderMap, setDefaultAuthSchemeRegistry, setDefaultCookieSpecRegistry, setDefaultCookieStore, setDefaultCredentialsProvider, setDefaultHeaders, setDefaultRequestConfig, setEarlyHintsListener, setH2Config, setHttp1Config, setIOReactorConfig, setIoReactorExceptionCallback, setIoSessionDecorator, setIOSessionListener, setKeepAliveStrategy, setProxy, setProxyAuthenticationStrategy, setProxySelector, setRedirectStrategy, setRetryStrategy, setRoutePlanner, setSchemePortResolver, setTargetAuthenticationStrategy, setThreadFactory, setUserAgent, setUserTokenHandler, setVersionPolicy, useSystemProperties
-
Constructor Details
-
CachingHttpAsyncClientBuilder
protected CachingHttpAsyncClientBuilder()
-
-
Method Details
-
create
-
setResourceFactory
-
setHttpCacheStorage
-
setHttpCacheStorage
-
setCacheDir
-
setSchedulingStrategy
public final CachingHttpAsyncClientBuilder setSchedulingStrategy(SchedulingStrategy schedulingStrategy) -
setCacheConfig
-
setHttpCacheInvalidator
@Deprecated public final CachingHttpAsyncClientBuilder setHttpCacheInvalidator(HttpAsyncCacheInvalidator cacheInvalidator) Deprecated.Do not use. -
setDeleteCache
-
customizeExecChain
protected void customizeExecChain(org.apache.hc.core5.http.config.NamedElementChain<org.apache.hc.client5.http.async.AsyncExecChainHandler> execChainDefinition) - Overrides:
customizeExecChainin classorg.apache.hc.client5.http.impl.async.HttpAsyncClientBuilder
-
contextAdaptor
protected Function<org.apache.hc.core5.http.protocol.HttpContext,org.apache.hc.client5.http.protocol.HttpClientContext> contextAdaptor()- Overrides:
contextAdaptorin classorg.apache.hc.client5.http.impl.async.HttpAsyncClientBuilder
-