public class ChannelManager extends Object
Modifier and Type | Field and Description |
---|---|
static String |
CHUNKED_WRITER_HANDLER |
static String |
DEFLATER_HANDLER |
static String |
HTTP_HANDLER |
static String |
HTTP_PROCESSOR |
static String |
INFLATER_HANDLER |
static String |
SSL_HANDLER |
static String |
WS_DECODER_HANDLER |
static String |
WS_ENCODER_HANDLER |
static String |
WS_FRAME_AGGREGATOR |
static String |
WS_PROCESSOR |
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() |
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,
ConnectionPoolPartitioning 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<?> handler,
boolean keepAlive,
Object partitionKey) |
void |
upgradePipelineForWebSockets(io.netty.channel.ChannelPipeline pipeline) |
void |
upgradeProtocol(io.netty.channel.ChannelPipeline pipeline,
Uri requestUri) |
void |
verifyChannelPipeline(io.netty.channel.ChannelPipeline pipeline,
Uri uri,
String virtualHost) |
public static final String HTTP_HANDLER
public static final String SSL_HANDLER
public static final String HTTP_PROCESSOR
public static final String WS_PROCESSOR
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 ChannelManager(AsyncHttpClientConfig config, io.netty.util.Timer nettyTimer)
public void configureBootstraps(NettyRequestSender requestSender)
public final void tryToOfferChannelToPool(io.netty.channel.Channel channel, AsyncHandler<?> handler, boolean keepAlive, Object partitionKey)
public io.netty.channel.Channel poll(Uri uri, String virtualHost, ProxyServer proxy, ConnectionPoolPartitioning 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 GeneralSecurityException
GeneralSecurityException
public io.netty.handler.ssl.SslHandler addSslHandler(io.netty.channel.ChannelPipeline pipeline, Uri uri, String virtualHost) throws GeneralSecurityException
GeneralSecurityException
public void verifyChannelPipeline(io.netty.channel.ChannelPipeline pipeline, Uri uri, String virtualHost) throws GeneralSecurityException
pipeline
- the pipelineuri
- the urivirtualHost
- the virtual hostGeneralSecurityException
- if creating the SslHandler crashedpublic 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()
Copyright © 2015. All Rights Reserved.