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,
NettyAsyncHttpProviderConfig nettyConfig,
org.jboss.netty.util.Timer nettyTimer) |
Modifier and Type | Method and Description |
---|---|
void |
abortChannelPreemption(String partition) |
void |
close() |
void |
closeChannel(org.jboss.netty.channel.Channel channel) |
void |
configureBootstraps(NettyRequestSender requestSender,
AtomicBoolean closed) |
org.jboss.netty.handler.ssl.SslHandler |
createSslHandler(String peerHost,
int peerPort) |
void |
drainChannelAndOffer(org.jboss.netty.channel.Channel channel,
NettyResponseFuture<?> future) |
void |
drainChannelAndOffer(org.jboss.netty.channel.Channel channel,
NettyResponseFuture<?> future,
boolean keepAlive,
String partition) |
void |
flushPartition(String partitionId) |
void |
flushPartitions(ChannelPoolPartitionSelector selector) |
org.jboss.netty.bootstrap.ClientBootstrap |
getBootstrap(String scheme,
boolean useProxy,
boolean useSSl) |
static org.jboss.netty.handler.ssl.SslHandler |
getSslHandler(org.jboss.netty.channel.ChannelPipeline pipeline) |
static boolean |
isSslHandlerConfigured(org.jboss.netty.channel.ChannelPipeline pipeline) |
Callback |
newDrainCallback(NettyResponseFuture<?> future,
org.jboss.netty.channel.Channel channel,
boolean keepAlive,
String partition) |
org.jboss.netty.channel.Channel |
poll(Uri uri,
ProxyServer proxy,
ConnectionPoolPartitioning connectionPoolPartitioning) |
void |
preemptChannel(String partition) |
void |
registerOpenChannel(org.jboss.netty.channel.Channel channel,
String partition) |
boolean |
removeAll(org.jboss.netty.channel.Channel connection) |
void |
tryToOfferChannelToPool(org.jboss.netty.channel.Channel channel,
boolean keepAlive,
String partition) |
void |
upgradePipelineForWebSockets(org.jboss.netty.channel.ChannelPipeline pipeline) |
void |
upgradeProtocol(org.jboss.netty.channel.ChannelPipeline pipeline,
String scheme,
String host,
int port) |
void |
verifyChannelPipeline(org.jboss.netty.channel.ChannelPipeline pipeline,
String scheme) |
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, NettyAsyncHttpProviderConfig nettyConfig, org.jboss.netty.util.Timer nettyTimer)
public void configureBootstraps(NettyRequestSender requestSender, AtomicBoolean closed)
public final void tryToOfferChannelToPool(org.jboss.netty.channel.Channel channel, boolean keepAlive, String partition)
public org.jboss.netty.channel.Channel poll(Uri uri, ProxyServer proxy, ConnectionPoolPartitioning connectionPoolPartitioning)
public boolean removeAll(org.jboss.netty.channel.Channel connection)
public void preemptChannel(String partition) throws IOException
IOException
public void close()
public void closeChannel(org.jboss.netty.channel.Channel channel)
public void abortChannelPreemption(String partition)
public void registerOpenChannel(org.jboss.netty.channel.Channel channel, String partition)
public org.jboss.netty.handler.ssl.SslHandler createSslHandler(String peerHost, int peerPort) throws GeneralSecurityException, IOException
GeneralSecurityException
IOException
public static org.jboss.netty.handler.ssl.SslHandler getSslHandler(org.jboss.netty.channel.ChannelPipeline pipeline)
public static boolean isSslHandlerConfigured(org.jboss.netty.channel.ChannelPipeline pipeline)
public void upgradeProtocol(org.jboss.netty.channel.ChannelPipeline pipeline, String scheme, String host, int port) throws IOException, GeneralSecurityException
IOException
GeneralSecurityException
public void verifyChannelPipeline(org.jboss.netty.channel.ChannelPipeline pipeline, String scheme) throws IOException, GeneralSecurityException
IOException
GeneralSecurityException
public org.jboss.netty.bootstrap.ClientBootstrap getBootstrap(String scheme, boolean useProxy, boolean useSSl)
public void upgradePipelineForWebSockets(org.jboss.netty.channel.ChannelPipeline pipeline)
public final Callback newDrainCallback(NettyResponseFuture<?> future, org.jboss.netty.channel.Channel channel, boolean keepAlive, String partition)
public void drainChannelAndOffer(org.jboss.netty.channel.Channel channel, NettyResponseFuture<?> future)
public void drainChannelAndOffer(org.jboss.netty.channel.Channel channel, NettyResponseFuture<?> future, boolean keepAlive, String partition)
public void flushPartition(String partitionId)
public void flushPartitions(ChannelPoolPartitionSelector selector)
Copyright © 2015. All Rights Reserved.