Class ChannelManager
- java.lang.Object
- 
- org.asynchttpclient.netty.channel.ChannelManager
 
- 
 public class ChannelManager extends Object 
- 
- 
Field SummaryFields Modifier and Type Field Description static StringAHC_HTTP_HANDLERstatic StringAHC_WS_HANDLERstatic StringCHUNKED_WRITER_HANDLERstatic StringHTTP_CLIENT_CODECstatic StringINFLATER_HANDLERstatic StringLOGGING_HANDLERstatic StringSOCKS_HANDLERstatic StringSSL_HANDLERstatic StringWS_COMPRESSOR_HANDLERstatic StringWS_DECODER_HANDLERstatic StringWS_ENCODER_HANDLERstatic StringWS_FRAME_AGGREGATOR
 - 
Constructor SummaryConstructors Constructor Description ChannelManager(AsyncHttpClientConfig config, io.netty.util.Timer nettyTimer)
 - 
Method SummaryAll Methods Static Methods Instance Methods Concrete Methods Modifier and Type Method Description io.netty.handler.ssl.SslHandleraddSslHandler(io.netty.channel.ChannelPipeline pipeline, Uri uri, String virtualHost, boolean hasSocksProxyHandler)voidclose()voidcloseChannel(io.netty.channel.Channel channel)voidconfigureBootstraps(NettyRequestSender requestSender)voiddrainChannelAndOffer(io.netty.channel.Channel channel, NettyResponseFuture<?> future)voiddrainChannelAndOffer(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)ChannelPoolgetChannelPool()ClientStatsgetClientStats()io.netty.channel.EventLoopGroupgetEventLoopGroup()booleanisOpen()static booleanisSslHandlerConfigured(io.netty.channel.ChannelPipeline pipeline)io.netty.channel.Channelpoll(Uri uri, String virtualHost, ProxyServer proxy, ChannelPoolPartitioning connectionPoolPartitioning)voidregisterOpenChannel(io.netty.channel.Channel channel)voidremoveAll(io.netty.channel.Channel connection)voidtryToOfferChannelToPool(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)voidupgradePipelineForWebSockets(io.netty.channel.ChannelPipeline pipeline)
 
- 
- 
- 
Field Detail- 
HTTP_CLIENT_CODECpublic static final String HTTP_CLIENT_CODEC - See Also:
- Constant Field Values
 
 - 
SSL_HANDLERpublic static final String SSL_HANDLER - See Also:
- Constant Field Values
 
 - 
SOCKS_HANDLERpublic static final String SOCKS_HANDLER - See Also:
- Constant Field Values
 
 - 
INFLATER_HANDLERpublic static final String INFLATER_HANDLER - See Also:
- Constant Field Values
 
 - 
CHUNKED_WRITER_HANDLERpublic static final String CHUNKED_WRITER_HANDLER - See Also:
- Constant Field Values
 
 - 
WS_DECODER_HANDLERpublic static final String WS_DECODER_HANDLER - See Also:
- Constant Field Values
 
 - 
WS_FRAME_AGGREGATORpublic static final String WS_FRAME_AGGREGATOR - See Also:
- Constant Field Values
 
 - 
WS_COMPRESSOR_HANDLERpublic static final String WS_COMPRESSOR_HANDLER - See Also:
- Constant Field Values
 
 - 
WS_ENCODER_HANDLERpublic static final String WS_ENCODER_HANDLER - See Also:
- Constant Field Values
 
 - 
AHC_HTTP_HANDLERpublic static final String AHC_HTTP_HANDLER - See Also:
- Constant Field Values
 
 - 
AHC_WS_HANDLERpublic static final String AHC_WS_HANDLER - See Also:
- Constant Field Values
 
 - 
LOGGING_HANDLERpublic static final String LOGGING_HANDLER - See Also:
- Constant Field Values
 
 
- 
 - 
Constructor Detail- 
ChannelManagerpublic ChannelManager(AsyncHttpClientConfig config, io.netty.util.Timer nettyTimer) 
 
- 
 - 
Method Detail- 
isSslHandlerConfiguredpublic static boolean isSslHandlerConfigured(io.netty.channel.ChannelPipeline pipeline) 
 - 
configureBootstrapspublic void configureBootstraps(NettyRequestSender requestSender) 
 - 
tryToOfferChannelToPoolpublic final void tryToOfferChannelToPool(io.netty.channel.Channel channel, AsyncHandler<?> asyncHandler, boolean keepAlive, Object partitionKey)
 - 
pollpublic io.netty.channel.Channel poll(Uri uri, String virtualHost, ProxyServer proxy, ChannelPoolPartitioning connectionPoolPartitioning) 
 - 
removeAllpublic void removeAll(io.netty.channel.Channel connection) 
 - 
closepublic void close() 
 - 
closeChannelpublic void closeChannel(io.netty.channel.Channel channel) 
 - 
registerOpenChannelpublic void registerOpenChannel(io.netty.channel.Channel channel) 
 - 
updatePipelineForHttpTunnelingpublic io.netty.util.concurrent.Future<io.netty.channel.Channel> updatePipelineForHttpTunneling(io.netty.channel.ChannelPipeline pipeline, Uri requestUri)
 - 
addSslHandlerpublic io.netty.handler.ssl.SslHandler addSslHandler(io.netty.channel.ChannelPipeline pipeline, Uri uri, String virtualHost, boolean hasSocksProxyHandler)
 - 
getBootstrappublic io.netty.util.concurrent.Future<io.netty.bootstrap.Bootstrap> getBootstrap(Uri uri, io.netty.resolver.NameResolver<InetAddress> nameResolver, ProxyServer proxy) 
 - 
upgradePipelineForWebSocketspublic void upgradePipelineForWebSockets(io.netty.channel.ChannelPipeline pipeline) 
 - 
drainChannelAndOfferpublic void drainChannelAndOffer(io.netty.channel.Channel channel, NettyResponseFuture<?> future)
 - 
drainChannelAndOfferpublic void drainChannelAndOffer(io.netty.channel.Channel channel, NettyResponseFuture<?> future, boolean keepAlive, Object partitionKey)
 - 
getChannelPoolpublic ChannelPool getChannelPool() 
 - 
getEventLoopGrouppublic io.netty.channel.EventLoopGroup getEventLoopGroup() 
 - 
getClientStatspublic ClientStats getClientStats() 
 - 
isOpenpublic boolean isOpen() 
 
- 
 
-