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 |
DEFLATER_HANDLER |
static String |
HTTP_CLIENT_CODEC |
static String |
INFLATER_HANDLER |
static String |
LOGGING_HANDLER |
static String |
PINNED_ENTRY |
static String |
SSL_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 |
---|---|
void |
abortChannelPreemption(Object partitionKey) |
io.netty.handler.ssl.SslHandler |
addSslHandler(io.netty.channel.ChannelPipeline pipeline,
Uri uri,
String virtualHost) |
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.bootstrap.Bootstrap |
getBootstrap(Uri uri,
ProxyServer proxy) |
ChannelPool |
getChannelPool() |
io.netty.channel.EventLoopGroup |
getEventLoopGroup() |
static boolean |
isSslHandlerConfigured(io.netty.channel.ChannelPipeline pipeline) |
Callback |
newDrainCallback(NettyResponseFuture<?> future,
io.netty.channel.Channel channel,
boolean keepAlive,
Object partitionKey) |
io.netty.channel.Channel |
poll(Uri uri,
String virtualHost,
ProxyServer proxy,
ChannelPoolPartitioning connectionPoolPartitioning) |
void |
preemptChannel(Object partitionKey) |
void |
registerOpenChannel(io.netty.channel.Channel channel,
Object partitionKey) |
boolean |
removeAll(io.netty.channel.Channel connection) |
void |
tryToOfferChannelToPool(io.netty.channel.Channel channel,
AsyncHandler<?> asyncHandler,
boolean keepAlive,
Object partitionKey) |
void |
upgradePipelineForWebSockets(io.netty.channel.ChannelPipeline pipeline) |
void |
upgradeProtocol(io.netty.channel.ChannelPipeline pipeline,
Uri requestUri) |
public static final String PINNED_ENTRY
public static final String HTTP_CLIENT_CODEC
public static final String SSL_HANDLER
public static final String DEFLATER_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_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 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 boolean removeAll(io.netty.channel.Channel connection)
public void preemptChannel(Object partitionKey) throws IOException
IOException
public void close()
public void closeChannel(io.netty.channel.Channel channel)
public void abortChannelPreemption(Object partitionKey)
public void registerOpenChannel(io.netty.channel.Channel channel, Object partitionKey)
public static boolean isSslHandlerConfigured(io.netty.channel.ChannelPipeline pipeline)
public void upgradeProtocol(io.netty.channel.ChannelPipeline pipeline, Uri requestUri) throws SSLException
SSLException
public io.netty.handler.ssl.SslHandler addSslHandler(io.netty.channel.ChannelPipeline pipeline, Uri uri, String virtualHost)
public io.netty.bootstrap.Bootstrap getBootstrap(Uri uri, ProxyServer proxy)
public void upgradePipelineForWebSockets(io.netty.channel.ChannelPipeline pipeline)
public final Callback newDrainCallback(NettyResponseFuture<?> future, io.netty.channel.Channel channel, boolean keepAlive, Object partitionKey)
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()
Copyright © 2016. All Rights Reserved.