| 程序包 | 说明 |
|---|---|
| org.apache.hc.client5.http.impl.async |
Asynchronous HTTP client API implementation that supports both
HTTP/2 and HTTP/1.1 transport.
|
| org.apache.hc.core5.http.impl.bootstrap |
HTTP/1.1 requester and server bootstrap.
|
| org.apache.hc.core5.http2.impl.nio.bootstrap |
HTTP/2 capable requester and server bootstrap.
|
| org.apache.hc.core5.reactor |
Event driven network communication APIs and components loosely based on
Doug Lea's
reactor pattern.
|
| 限定符和类型 | 方法和说明 |
|---|---|
static MinimalH2AsyncClient |
HttpAsyncClients.createHttp2Minimal(H2Config h2Config,
IOReactorConfig ioReactorConfig)
Creates
MinimalH2AsyncClient instance optimized for HTTP/2 multiplexing message
transport without advanced HTTP protocol functionality. |
static MinimalH2AsyncClient |
HttpAsyncClients.createHttp2Minimal(H2Config h2Config,
IOReactorConfig ioReactorConfig,
DnsResolver dnsResolver,
TlsStrategy tlsStrategy)
Creates
MinimalH2AsyncClient instance optimized for HTTP/2 multiplexing message
transport without advanced HTTP protocol functionality. |
static MinimalH2AsyncClient |
HttpAsyncClients.createHttp2Minimal(H2Config h2Config,
IOReactorConfig ioReactorConfig,
TlsStrategy tlsStrategy)
Creates
MinimalH2AsyncClient instance optimized for HTTP/2 multiplexing message
transport without advanced HTTP protocol functionality. |
static MinimalHttpAsyncClient |
HttpAsyncClients.createMinimal(H2Config h2Config,
Http1Config h1Config,
IOReactorConfig ioReactorConfig)
Creates
MinimalHttpAsyncClient instance optimized for
HTTP/1.1 and HTTP/2 message transport without advanced HTTP protocol
functionality. |
static MinimalHttpAsyncClient |
HttpAsyncClients.createMinimal(H2Config h2Config,
Http1Config h1Config,
IOReactorConfig ioReactorConfig,
AsyncClientConnectionManager connmgr)
Creates
MinimalHttpAsyncClient instance optimized for
HTTP/1.1 and HTTP/2 message transport without advanced HTTP protocol
functionality. |
static MinimalHttpAsyncClient |
HttpAsyncClients.createMinimal(HttpVersionPolicy versionPolicy,
H2Config h2Config,
Http1Config h1Config,
IOReactorConfig ioReactorConfig)
|
static MinimalHttpAsyncClient |
HttpAsyncClients.createMinimal(HttpVersionPolicy versionPolicy,
H2Config h2Config,
Http1Config h1Config,
IOReactorConfig ioReactorConfig,
AsyncClientConnectionManager connmgr)
|
HttpAsyncClientBuilder |
HttpAsyncClientBuilder.setIOReactorConfig(IOReactorConfig ioReactorConfig)
Sets
IOReactorConfig configuration. |
H2AsyncClientBuilder |
H2AsyncClientBuilder.setIOReactorConfig(IOReactorConfig ioReactorConfig)
Sets
IOReactorConfig configuration. |
| 限定符和类型 | 方法和说明 |
|---|---|
AsyncRequesterBootstrap |
AsyncRequesterBootstrap.setIOReactorConfig(IOReactorConfig ioReactorConfig)
Sets I/O reactor configuration.
|
AsyncServerBootstrap |
AsyncServerBootstrap.setIOReactorConfig(IOReactorConfig ioReactorConfig)
Sets I/O reactor configuration.
|
| 构造器和说明 |
|---|
AsyncRequester(IOEventHandlerFactory eventHandlerFactory,
IOReactorConfig ioReactorConfig,
Decorator<IOSession> ioSessionDecorator,
Callback<Exception> exceptionCallback,
IOSessionListener sessionListener,
Callback<IOSession> sessionShutdownCallback,
Resolver<HttpHost,InetSocketAddress> addressResolver) |
AsyncServer(IOEventHandlerFactory eventHandlerFactory,
IOReactorConfig ioReactorConfig,
Decorator<IOSession> ioSessionDecorator,
Callback<Exception> exceptionCallback,
IOSessionListener sessionListener,
Callback<IOSession> sessionShutdownCallback) |
HttpAsyncRequester(IOReactorConfig ioReactorConfig,
IOEventHandlerFactory eventHandlerFactory,
Decorator<IOSession> ioSessionDecorator,
Callback<Exception> exceptionCallback,
IOSessionListener sessionListener,
ManagedConnPool<HttpHost,IOSession> connPool)
Use
AsyncRequesterBootstrap to create instances of this class. |
HttpAsyncRequester(IOReactorConfig ioReactorConfig,
IOEventHandlerFactory eventHandlerFactory,
Decorator<IOSession> ioSessionDecorator,
Callback<Exception> exceptionCallback,
IOSessionListener sessionListener,
ManagedConnPool<HttpHost,IOSession> connPool,
TlsStrategy tlsStrategy,
Timeout handshakeTimeout)
Use
AsyncRequesterBootstrap to create instances of this class. |
HttpAsyncServer(IOEventHandlerFactory eventHandlerFactory,
IOReactorConfig ioReactorConfig,
Decorator<IOSession> ioSessionDecorator,
Callback<Exception> exceptionCallback,
IOSessionListener sessionListener)
Use
AsyncServerBootstrap to create instances of this class. |
HttpAsyncServer(IOEventHandlerFactory eventHandlerFactory,
IOReactorConfig ioReactorConfig,
Decorator<IOSession> ioSessionDecorator,
Callback<Exception> exceptionCallback,
IOSessionListener sessionListener,
String canonicalName)
Use
AsyncServerBootstrap to create instances of this class. |
| 限定符和类型 | 方法和说明 |
|---|---|
H2MultiplexingRequesterBootstrap |
H2MultiplexingRequesterBootstrap.setIOReactorConfig(IOReactorConfig ioReactorConfig)
Sets I/O reactor configuration.
|
H2RequesterBootstrap |
H2RequesterBootstrap.setIOReactorConfig(IOReactorConfig ioReactorConfig)
Sets I/O reactor configuration.
|
H2ServerBootstrap |
H2ServerBootstrap.setIOReactorConfig(IOReactorConfig ioReactorConfig)
Sets I/O reactor configuration.
|
| 限定符和类型 | 字段和说明 |
|---|---|
static IOReactorConfig |
IOReactorConfig.DEFAULT |
| 限定符和类型 | 方法和说明 |
|---|---|
IOReactorConfig |
IOReactorConfig.Builder.build() |
| 限定符和类型 | 方法和说明 |
|---|---|
static IOReactorConfig.Builder |
IOReactorConfig.copy(IOReactorConfig config) |
| 构造器和说明 |
|---|
DefaultConnectingIOReactor(IOEventHandlerFactory eventHandlerFactory,
IOReactorConfig config,
Callback<IOSession> sessionShutdownCallback) |
DefaultConnectingIOReactor(IOEventHandlerFactory eventHandlerFactory,
IOReactorConfig ioReactorConfig,
ThreadFactory threadFactory,
Decorator<IOSession> ioSessionDecorator,
Callback<Exception> exceptionCallback,
IOSessionListener sessionListener,
Callback<IOSession> sessionShutdownCallback) |
DefaultListeningIOReactor(IOEventHandlerFactory eventHandlerFactory,
IOReactorConfig config,
Callback<IOSession> sessionShutdownCallback)
Creates an instance of DefaultListeningIOReactor with the given configuration.
|
DefaultListeningIOReactor(IOEventHandlerFactory eventHandlerFactory,
IOReactorConfig ioReactorConfig,
ThreadFactory dispatchThreadFactory,
ThreadFactory listenerThreadFactory,
Decorator<IOSession> ioSessionDecorator,
Callback<Exception> exceptionCallback,
IOSessionListener sessionListener,
Callback<IOSession> sessionShutdownCallback)
Creates an instance of DefaultListeningIOReactor with the given configuration.
|
Copyright © 2023. All rights reserved.