public class CachingH2AsyncClientBuilder extends H2AsyncClientBuilder
CloseableHttpAsyncClient
instances capable of client-side caching.Modifier | Constructor and Description |
---|---|
protected |
CachingH2AsyncClientBuilder() |
Modifier and Type | Method and Description |
---|---|
static CachingH2AsyncClientBuilder |
create() |
protected void |
customizeExecChain(org.apache.hc.core5.http.config.NamedElementChain<AsyncExecChainHandler> execChainDefinition) |
CachingH2AsyncClientBuilder |
setCacheConfig(CacheConfig cacheConfig) |
CachingH2AsyncClientBuilder |
setCacheDir(File cacheDir) |
CachingH2AsyncClientBuilder |
setDeleteCache(boolean deleteCache) |
CachingH2AsyncClientBuilder |
setHttpCacheInvalidator(HttpAsyncCacheInvalidator cacheInvalidator)
Deprecated.
Do not use.
|
CachingH2AsyncClientBuilder |
setHttpCacheStorage(HttpAsyncCacheStorage storage) |
CachingH2AsyncClientBuilder |
setHttpCacheStorage(HttpCacheStorage storage) |
CachingH2AsyncClientBuilder |
setResourceFactory(ResourceFactory resourceFactory) |
CachingH2AsyncClientBuilder |
setSchedulingStrategy(SchedulingStrategy schedulingStrategy) |
addCloseable, addExecInterceptorAfter, addExecInterceptorBefore, addExecInterceptorFirst, addExecInterceptorLast, addRequestInterceptorFirst, addRequestInterceptorLast, addResponseInterceptorFirst, addResponseInterceptorLast, build, disableAuthCaching, disableAutomaticRetries, disableCookieManagement, disableRedirectHandling, evictIdleConnections, replaceExecInterceptor, setCharCodingConfig, setConnectionConfigResolver, setDefaultAuthSchemeRegistry, setDefaultConnectionConfig, setDefaultCookieSpecRegistry, setDefaultCookieStore, setDefaultCredentialsProvider, setDefaultHeaders, setDefaultRequestConfig, setDnsResolver, setH2Config, setIOReactorConfig, setIoReactorExceptionCallback, setIoSessionDecorator, setIOSessionListener, setProxyAuthenticationStrategy, setRedirectStrategy, setRetryStrategy, setRoutePlanner, setSchemePortResolver, setTargetAuthenticationStrategy, setThreadFactory, setTlsStrategy, setUserAgent, useSystemProperties
public static CachingH2AsyncClientBuilder create()
public final CachingH2AsyncClientBuilder setResourceFactory(ResourceFactory resourceFactory)
public final CachingH2AsyncClientBuilder setHttpCacheStorage(HttpCacheStorage storage)
public final CachingH2AsyncClientBuilder setHttpCacheStorage(HttpAsyncCacheStorage storage)
public final CachingH2AsyncClientBuilder setCacheDir(File cacheDir)
public final CachingH2AsyncClientBuilder setSchedulingStrategy(SchedulingStrategy schedulingStrategy)
public final CachingH2AsyncClientBuilder setCacheConfig(CacheConfig cacheConfig)
@Deprecated public final CachingH2AsyncClientBuilder setHttpCacheInvalidator(HttpAsyncCacheInvalidator cacheInvalidator)
public CachingH2AsyncClientBuilder setDeleteCache(boolean deleteCache)
protected void customizeExecChain(org.apache.hc.core5.http.config.NamedElementChain<AsyncExecChainHandler> execChainDefinition)
customizeExecChain
in class H2AsyncClientBuilder
Copyright © 2010–2021 The Apache Software Foundation. All rights reserved.