public class ChannelManager extends Object
Modifier and Type | Field and Description |
---|---|
static String |
AHC_HTTP_HANDLER |
static String |
AHC_WS_HANDLER |
static String |
CHUNKED_WRITER_HANDLER |
static String |
HTTP_CLIENT_CODEC |
static String |
INFLATER_HANDLER |
static String |
LOGGING_HANDLER |
static String |
SOCKS_HANDLER |
static String |
SSL_HANDLER |
static String |
WS_COMPRESSOR_HANDLER |
static String |
WS_DECODER_HANDLER |
static String |
WS_ENCODER_HANDLER |
static String |
WS_FRAME_AGGREGATOR |
Constructor and Description |
---|
ChannelManager(AsyncHttpClientConfig config,
io.netty.util.Timer nettyTimer) |
Modifier and Type | Method and Description |
---|---|
io.netty.handler.ssl.SslHandler |
addSslHandler(io.netty.channel.ChannelPipeline pipeline,
Uri uri,
String virtualHost,
boolean hasSocksProxyHandler) |
void |
close() |
void |
closeChannel(io.netty.channel.Channel channel) |
void |
configureBootstraps(NettyRequestSender requestSender) |
void |
drainChannelAndOffer(io.netty.channel.Channel channel,
NettyResponseFuture<?> future) |
void |
drainChannelAndOffer(io.netty.channel.Channel channel,
NettyResponseFuture<?> future,
boolean keepAlive,
Object partitionKey) |
io.netty.util.concurrent.Future<io.netty.bootstrap.Bootstrap> |
getBootstrap(Uri uri,
io.netty.resolver.NameResolver<InetAddress> nameResolver,
ProxyServer proxy) |
ChannelPool |
getChannelPool() |
ClientStats |
getClientStats() |
io.netty.channel.EventLoopGroup |
getEventLoopGroup() |
boolean |
isOpen() |
static boolean |
isSslHandlerConfigured(io.netty.channel.ChannelPipeline pipeline) |
io.netty.channel.Channel |
poll(Uri uri,
String virtualHost,
ProxyServer proxy,
ChannelPoolPartitioning connectionPoolPartitioning) |
void |
registerOpenChannel(io.netty.channel.Channel channel) |
void |
removeAll(io.netty.channel.Channel connection) |
void |
tryToOfferChannelToPool(io.netty.channel.Channel channel,
AsyncHandler<?> asyncHandler,
boolean keepAlive,
Object partitionKey) |
io.netty.util.concurrent.Future<io.netty.channel.Channel> |
updatePipelineForHttpTunneling(io.netty.channel.ChannelPipeline pipeline,
Uri requestUri) |
void |
upgradePipelineForWebSockets(io.netty.channel.ChannelPipeline pipeline) |
public static final String HTTP_CLIENT_CODEC
public static final String SSL_HANDLER
public static final String SOCKS_HANDLER
public static final String INFLATER_HANDLER
public static final String CHUNKED_WRITER_HANDLER
public static final String WS_DECODER_HANDLER
public static final String WS_FRAME_AGGREGATOR
public static final String WS_COMPRESSOR_HANDLER
public static final String WS_ENCODER_HANDLER
public static final String AHC_HTTP_HANDLER
public static final String AHC_WS_HANDLER
public static final String LOGGING_HANDLER
public ChannelManager(AsyncHttpClientConfig config, io.netty.util.Timer nettyTimer)
public static boolean isSslHandlerConfigured(io.netty.channel.ChannelPipeline pipeline)
public void configureBootstraps(NettyRequestSender requestSender)
public final void tryToOfferChannelToPool(io.netty.channel.Channel channel, AsyncHandler<?> asyncHandler, boolean keepAlive, Object partitionKey)
public io.netty.channel.Channel poll(Uri uri, String virtualHost, ProxyServer proxy, ChannelPoolPartitioning connectionPoolPartitioning)
public void removeAll(io.netty.channel.Channel connection)
public void close()
public void closeChannel(io.netty.channel.Channel channel)
public void registerOpenChannel(io.netty.channel.Channel channel)
public io.netty.util.concurrent.Future<io.netty.channel.Channel> updatePipelineForHttpTunneling(io.netty.channel.ChannelPipeline pipeline, Uri requestUri)
public io.netty.handler.ssl.SslHandler addSslHandler(io.netty.channel.ChannelPipeline pipeline, Uri uri, String virtualHost, boolean hasSocksProxyHandler)
public io.netty.util.concurrent.Future<io.netty.bootstrap.Bootstrap> getBootstrap(Uri uri, io.netty.resolver.NameResolver<InetAddress> nameResolver, ProxyServer proxy)
public void upgradePipelineForWebSockets(io.netty.channel.ChannelPipeline pipeline)
public void drainChannelAndOffer(io.netty.channel.Channel channel, NettyResponseFuture<?> future)
public void drainChannelAndOffer(io.netty.channel.Channel channel, NettyResponseFuture<?> future, boolean keepAlive, Object partitionKey)
public ChannelPool getChannelPool()
public io.netty.channel.EventLoopGroup getEventLoopGroup()
public ClientStats getClientStats()
public boolean isOpen()
Copyright © 2019. All rights reserved.