public static class NettyClient.Factory extends Object implements HttpClientFactory
| Constructor and Description |
|---|
Factory()
Create a Netty client factory with default settings.
|
Factory(io.netty.bootstrap.Bootstrap baseBootstrap,
int eventLoopGroupSize,
int channelPoolSize)
Create a Netty client factory, specifying the event loop group size and the
channel pool size.
|
Factory(io.netty.bootstrap.Bootstrap baseBootstrap,
int eventLoopGroupSize,
int channelPoolSize,
io.netty.handler.ssl.SslContext sslContext)
Create a Netty client factory, specifying the event loop group size and the
channel pool size.
|
Factory(io.netty.bootstrap.Bootstrap baseBootstrap,
int eventLoopGroupSize,
SharedChannelPoolOptions options,
io.netty.handler.ssl.SslContext sslContext)
Create a Netty client factory, specifying the event loop group size and the
channel pool options.
|
Factory(SharedChannelPoolOptions options)
Create a Netty client factory, specifying the channel pool options.
|
| Modifier and Type | Method and Description |
|---|---|
void |
close()
Awaits completion of in-flight requests, then closes shared resources associated with this HttpClient.Factory.
|
HttpClient |
create(HttpClientConfiguration configuration)
Creates an HttpClient with the given Configuration.
|
public Factory()
public Factory(SharedChannelPoolOptions options)
options - the options to configure the channel poolpublic Factory(io.netty.bootstrap.Bootstrap baseBootstrap,
int eventLoopGroupSize,
int channelPoolSize)
baseBootstrap - a channel Bootstrap to use as a basis for channel creationeventLoopGroupSize - the number of event loop executorschannelPoolSize - the number of pooled channels (connections)public Factory(io.netty.bootstrap.Bootstrap baseBootstrap,
int eventLoopGroupSize,
int channelPoolSize,
io.netty.handler.ssl.SslContext sslContext)
baseBootstrap - a channel Bootstrap to use as a basis for channel creationeventLoopGroupSize - the number of event loop executorschannelPoolSize - the number of pooled channels (connections)sslContext - An SslContext, can be null.public Factory(io.netty.bootstrap.Bootstrap baseBootstrap,
int eventLoopGroupSize,
SharedChannelPoolOptions options,
io.netty.handler.ssl.SslContext sslContext)
baseBootstrap - a channel Bootstrap to use as a basis for channel creationeventLoopGroupSize - the number of event loop executorsoptions - the options to configure the channel poolsslContext - An SslContext, can be null.public HttpClient create(HttpClientConfiguration configuration)
HttpClientFactorycreate in interface HttpClientFactoryconfiguration - the configuration.public void close()
HttpClientFactoryclose in interface HttpClientFactoryclose in interface Closeableclose in interface AutoCloseable/**
* Copyright (c) Microsoft Corporation. All rights reserved.
* Licensed under the MIT License. See License.txt in the project root for
* license information.
*/