Class CachingH2AsyncClientBuilder
java.lang.Object
org.apache.hc.client5.http.impl.async.H2AsyncClientBuilder
org.apache.hc.client5.http.impl.cache.CachingH2AsyncClientBuilder
Builder for HTTP/2
CloseableHttpAsyncClient
instances capable of client-side caching.- Since:
- 5.0
-
Field Summary
FieldsModifier and TypeFieldDescriptionprivate CacheConfigprivate Fileprivate booleanprivate HttpAsyncCacheInvalidatorprivate ResourceFactoryprivate SchedulingStrategyprivate HttpAsyncCacheStorage -
Constructor Summary
Constructors -
Method Summary
Modifier and TypeMethodDescriptionstatic CachingH2AsyncClientBuildercreate()protected voidcustomizeExecChain(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 H2AsyncClientBuilder
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
-
Field Details
-
resourceFactory
-
storage
-
cacheDir
-
schedulingStrategy
-
cacheConfig
-
httpCacheInvalidator
-
deleteCache
private boolean deleteCache
-
-
Constructor Details
-
CachingH2AsyncClientBuilder
protected CachingH2AsyncClientBuilder()
-
-
Method Details
-
create
-
setResourceFactory
-
setHttpCacheStorage
-
setHttpCacheStorage
-
setCacheDir
-
setSchedulingStrategy
public final CachingH2AsyncClientBuilder setSchedulingStrategy(SchedulingStrategy schedulingStrategy) -
setCacheConfig
-
setHttpCacheInvalidator
public final CachingH2AsyncClientBuilder setHttpCacheInvalidator(HttpAsyncCacheInvalidator cacheInvalidator) -
setDeleteCache
-
customizeExecChain
protected void customizeExecChain(org.apache.hc.core5.http.config.NamedElementChain<AsyncExecChainHandler> execChainDefinition) Description copied from class:H2AsyncClientBuilderRequest exec chain customization and extension.For internal use.
- Overrides:
customizeExecChainin classH2AsyncClientBuilder
-