I - The type of the content of request.O - The type of the content of response.public class HttpClientBuilder<I,O> extends AbstractClientBuilder<HttpClientRequest<I>,HttpClientResponse<O>,HttpClientBuilder<I,O>,HttpClient<I,O>>
bootstrap, channelFactory, clientConfig, connectionFactory, eventListenersFactory, eventLoopGroup, eventsSubject, pipelineConfigurator, poolBuilder, serverInfo, socketChannel, wireLogginLevel| Constructor and Description |
|---|
HttpClientBuilder(io.netty.bootstrap.Bootstrap bootstrap,
java.lang.String host,
int port,
ClientConnectionFactory<HttpClientResponse<O>,HttpClientRequest<I>,? extends ObservableConnection<HttpClientResponse<O>,HttpClientRequest<I>>> connectionFactory,
ClientChannelFactory<HttpClientResponse<O>,HttpClientRequest<I>> factory) |
HttpClientBuilder(io.netty.bootstrap.Bootstrap bootstrap,
java.lang.String host,
int port,
ConnectionPoolBuilder<HttpClientResponse<O>,HttpClientRequest<I>> poolBuilder) |
HttpClientBuilder(java.lang.String host,
int port) |
HttpClientBuilder(java.lang.String host,
int port,
io.netty.bootstrap.Bootstrap bootstrap) |
| Modifier and Type | Method and Description |
|---|---|
protected HttpClient<I,O> |
createClient() |
protected io.netty.channel.EventLoopGroup |
defaultEventloop(java.lang.Class<? extends io.netty.channel.Channel> socketChannel) |
protected java.lang.Class<? extends io.netty.channel.socket.SocketChannel> |
defaultSocketChannelClass() |
protected java.lang.String |
generatedNamePrefix() |
protected MetricEventsListener<? extends ClientMetricsEvent<?>> |
newMetricsListener(MetricEventsListenerFactory factory,
HttpClient<I,O> client) |
appendPipelineConfigurator, build, channel, channelOption, config, defaultChannelOptions, defaultTcpOptions, defaultUdpOptions, enableWireLogging, eventloop, getBootstrap, getEventsSubject, getOrCreateName, getPipelineConfigurator, getPoolBuilder, getServerInfo, pipelineConfigurator, returnBuilder, withChannelFactory, withConnectionPoolLimitStrategy, withIdleConnectionsTimeoutMillis, withMaxConnections, withMetricEventsListenerFactory, withName, withNoConnectionPooling, withNoIdleConnectionCleanup, withPoolIdleCleanupScheduler, withSslEngineFactorypublic HttpClientBuilder(java.lang.String host,
int port)
public HttpClientBuilder(java.lang.String host,
int port,
io.netty.bootstrap.Bootstrap bootstrap)
public HttpClientBuilder(io.netty.bootstrap.Bootstrap bootstrap,
java.lang.String host,
int port,
ClientConnectionFactory<HttpClientResponse<O>,HttpClientRequest<I>,? extends ObservableConnection<HttpClientResponse<O>,HttpClientRequest<I>>> connectionFactory,
ClientChannelFactory<HttpClientResponse<O>,HttpClientRequest<I>> factory)
public HttpClientBuilder(io.netty.bootstrap.Bootstrap bootstrap,
java.lang.String host,
int port,
ConnectionPoolBuilder<HttpClientResponse<O>,HttpClientRequest<I>> poolBuilder)
protected java.lang.Class<? extends io.netty.channel.socket.SocketChannel> defaultSocketChannelClass()
defaultSocketChannelClass in class AbstractClientBuilder<HttpClientRequest<I>,HttpClientResponse<O>,HttpClientBuilder<I,O>,HttpClient<I,O>>protected io.netty.channel.EventLoopGroup defaultEventloop(java.lang.Class<? extends io.netty.channel.Channel> socketChannel)
defaultEventloop in class AbstractClientBuilder<HttpClientRequest<I>,HttpClientResponse<O>,HttpClientBuilder<I,O>,HttpClient<I,O>>protected HttpClient<I,O> createClient()
createClient in class AbstractClientBuilder<HttpClientRequest<I>,HttpClientResponse<O>,HttpClientBuilder<I,O>,HttpClient<I,O>>protected java.lang.String generatedNamePrefix()
generatedNamePrefix in class AbstractClientBuilder<HttpClientRequest<I>,HttpClientResponse<O>,HttpClientBuilder<I,O>,HttpClient<I,O>>protected MetricEventsListener<? extends ClientMetricsEvent<?>> newMetricsListener(MetricEventsListenerFactory factory, HttpClient<I,O> client)
newMetricsListener in class AbstractClientBuilder<HttpClientRequest<I>,HttpClientResponse<O>,HttpClientBuilder<I,O>,HttpClient<I,O>>