public class H2RequesterBootstrap extends Object
H2AsyncRequester
bootstrap.public static H2RequesterBootstrap bootstrap()
public final H2RequesterBootstrap setIOReactorConfig(IOReactorConfig ioReactorConfig)
public final H2RequesterBootstrap setHttpProcessor(HttpProcessor httpProcessor)
HttpProcessor
instance.public final H2RequesterBootstrap setVersionPolicy(HttpVersionPolicy versionPolicy)
public final H2RequesterBootstrap setH2Config(H2Config h2Config)
public final H2RequesterBootstrap setHttp1Config(Http1Config http1Config)
public final H2RequesterBootstrap setCharCodingConfig(CharCodingConfig charCodingConfig)
public final H2RequesterBootstrap setDefaultMaxPerRoute(int defaultMaxPerRoute)
public final H2RequesterBootstrap setMaxTotal(int maxTotal)
public final H2RequesterBootstrap setTimeToLive(TimeValue timeToLive)
public final H2RequesterBootstrap setPoolReusePolicy(PoolReusePolicy poolReusePolicy)
PoolReusePolicy
instance.@Experimental public final H2RequesterBootstrap setPoolConcurrencyPolicy(PoolConcurrencyPolicy poolConcurrencyPolicy)
PoolConcurrencyPolicy
instance.public final H2RequesterBootstrap setTlsStrategy(TlsStrategy tlsStrategy)
TlsStrategy
instance.public final H2RequesterBootstrap setHandshakeTimeout(Timeout handshakeTimeout)
public final H2RequesterBootstrap setIOSessionDecorator(Decorator<IOSession> ioSessionDecorator)
public final H2RequesterBootstrap setExceptionCallback(Callback<Exception> exceptionCallback)
public final H2RequesterBootstrap setIOSessionListener(IOSessionListener sessionListener)
IOSessionListener
instance.public final H2RequesterBootstrap setStreamListener(H2StreamListener streamListener)
H2StreamListener
instance.public final H2RequesterBootstrap setStreamListener(Http1StreamListener http1StreamListener)
Http1StreamListener
instance.public final H2RequesterBootstrap setConnPoolListener(ConnPoolListener<HttpHost> connPoolListener)
ConnPoolListener
instance.public final H2RequesterBootstrap setUriPatternType(UriPatternType uriPatternType)
UriPatternType
for handler registration.public final H2RequesterBootstrap register(String uriPattern, Supplier<AsyncPushConsumer> supplier)
AsyncPushConsumer
Supplier
as a default handler for URIs
matching the given pattern.uriPattern
- the pattern to register the handler for.supplier
- the handler supplier.public final H2RequesterBootstrap registerVirtual(String hostname, String uriPattern, Supplier<AsyncPushConsumer> supplier)
AsyncPushConsumer
Supplier
as a handler for URIs
matching the given host and the pattern.hostname
- the host nameuriPattern
- the pattern to register the handler for.supplier
- the handler supplier.public H2AsyncRequester create()
Copyright © 2005–2022 The Apache Software Foundation. All rights reserved.