public class CachingHttpAsyncClientBuilder extends HttpAsyncClientBuilder
CloseableHttpAsyncClient
instances capable of client-side caching.Modifier | Constructor and Description |
---|---|
protected |
CachingHttpAsyncClientBuilder() |
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
public static CachingHttpAsyncClientBuilder create()
public final CachingHttpAsyncClientBuilder setResourceFactory(ResourceFactory resourceFactory)
public final CachingHttpAsyncClientBuilder setHttpCacheStorage(HttpCacheStorage storage)
public final CachingHttpAsyncClientBuilder setHttpCacheStorage(HttpAsyncCacheStorage storage)
public final CachingHttpAsyncClientBuilder setCacheDir(File cacheDir)
public final CachingHttpAsyncClientBuilder setSchedulingStrategy(SchedulingStrategy schedulingStrategy)
public final CachingHttpAsyncClientBuilder setCacheConfig(CacheConfig cacheConfig)
@Deprecated public final CachingHttpAsyncClientBuilder setHttpCacheInvalidator(HttpAsyncCacheInvalidator cacheInvalidator)
public CachingHttpAsyncClientBuilder setDeleteCache(boolean deleteCache)
protected void customizeExecChain(org.apache.hc.core5.http.config.NamedElementChain<AsyncExecChainHandler> execChainDefinition)
customizeExecChain
in class HttpAsyncClientBuilder
protected Function<org.apache.hc.core5.http.protocol.HttpContext,HttpClientContext> contextAdaptor()
contextAdaptor
in class HttpAsyncClientBuilder
Copyright © 2010–2021 The Apache Software Foundation. All rights reserved.