public class ChannelManager
extends java.lang.Object
Modifier and Type | Field and Description |
---|---|
static java.lang.String |
AHC_HTTP_HANDLER |
static java.lang.String |
AHC_WS_HANDLER |
static java.lang.String |
CHUNKED_WRITER_HANDLER |
static java.lang.String |
HTTP_CLIENT_CODEC |
static java.lang.String |
INFLATER_HANDLER |
static java.lang.String |
LOGGING_HANDLER |
static java.lang.String |
SOCKS_HANDLER |
static java.lang.String |
SSL_HANDLER |
static java.lang.String |
WS_COMPRESSOR_HANDLER |
static java.lang.String |
WS_DECODER_HANDLER |
static java.lang.String |
WS_ENCODER_HANDLER |
static java.lang.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,
java.lang.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,
java.lang.Object partitionKey) |
io.netty.util.concurrent.Future<io.netty.bootstrap.Bootstrap> |
getBootstrap(Uri uri,
io.netty.resolver.NameResolver<java.net.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,
java.lang.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,
java.lang.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 java.lang.String HTTP_CLIENT_CODEC
public static final java.lang.String SSL_HANDLER
public static final java.lang.String SOCKS_HANDLER
public static final java.lang.String INFLATER_HANDLER
public static final java.lang.String CHUNKED_WRITER_HANDLER
public static final java.lang.String WS_DECODER_HANDLER
public static final java.lang.String WS_FRAME_AGGREGATOR
public static final java.lang.String WS_COMPRESSOR_HANDLER
public static final java.lang.String WS_ENCODER_HANDLER
public static final java.lang.String AHC_HTTP_HANDLER
public static final java.lang.String AHC_WS_HANDLER
public static final java.lang.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, java.lang.Object partitionKey)
public io.netty.channel.Channel poll(Uri uri, java.lang.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, java.lang.String virtualHost, boolean hasSocksProxyHandler)
public io.netty.util.concurrent.Future<io.netty.bootstrap.Bootstrap> getBootstrap(Uri uri, io.netty.resolver.NameResolver<java.net.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, java.lang.Object partitionKey)
public ChannelPool getChannelPool()
public io.netty.channel.EventLoopGroup getEventLoopGroup()
public ClientStats getClientStats()
public boolean isOpen()
Copyright © 2018. All Rights Reserved.