public final class NettyRequestSender extends Object
Modifier and Type | Field and Description |
---|---|
static String |
GZIP_DEFLATE |
Constructor and Description |
---|
NettyRequestSender(AsyncHttpClientConfig config,
NettyAsyncHttpProviderConfig nettyConfig,
ChannelManager channelManager,
org.jboss.netty.util.Timer nettyTimer,
AtomicBoolean closed) |
Modifier and Type | Method and Description |
---|---|
void |
abort(NettyResponseFuture<?> future,
Throwable t) |
boolean |
applyIoExceptionFiltersAndReplayRequest(NettyResponseFuture<?> future,
IOException e,
org.jboss.netty.channel.Channel channel) |
boolean |
isClosed() |
org.jboss.netty.util.Timeout |
newTimeout(org.jboss.netty.util.TimerTask task,
long delay) |
org.jboss.netty.channel.Channel |
pollAndVerifyCachedChannel(UriComponents uri,
ProxyServer proxy,
ConnectionPoolKeyStrategy connectionPoolKeyStrategy,
AsyncHandler<?> asyncHandler) |
boolean |
preemptChannel(AsyncHandler<?> asyncHandler,
String poolKey) |
void |
replayRequest(NettyResponseFuture<?> future,
FilterContext fc,
org.jboss.netty.channel.Channel channel) |
boolean |
retry(NettyResponseFuture<?> future,
org.jboss.netty.channel.Channel channel) |
<T> void |
sendNextRequest(Request request,
NettyResponseFuture<T> future) |
<T> ListenableFuture<T> |
sendRequest(Request request,
AsyncHandler<T> asyncHandler,
NettyResponseFuture<T> future,
boolean reclaimCache) |
<T> void |
writeRequest(NettyResponseFuture<T> future,
org.jboss.netty.channel.Channel channel) |
public static final String GZIP_DEFLATE
public NettyRequestSender(AsyncHttpClientConfig config, NettyAsyncHttpProviderConfig nettyConfig, ChannelManager channelManager, org.jboss.netty.util.Timer nettyTimer, AtomicBoolean closed)
public <T> ListenableFuture<T> sendRequest(Request request, AsyncHandler<T> asyncHandler, NettyResponseFuture<T> future, boolean reclaimCache) throws IOException
IOException
public <T> void writeRequest(NettyResponseFuture<T> future, org.jboss.netty.channel.Channel channel)
public org.jboss.netty.util.Timeout newTimeout(org.jboss.netty.util.TimerTask task, long delay)
public void abort(NettyResponseFuture<?> future, Throwable t)
public boolean retry(NettyResponseFuture<?> future, org.jboss.netty.channel.Channel channel)
public boolean applyIoExceptionFiltersAndReplayRequest(NettyResponseFuture<?> future, IOException e, org.jboss.netty.channel.Channel channel) throws IOException
IOException
public <T> void sendNextRequest(Request request, NettyResponseFuture<T> future) throws IOException
IOException
public org.jboss.netty.channel.Channel pollAndVerifyCachedChannel(UriComponents uri, ProxyServer proxy, ConnectionPoolKeyStrategy connectionPoolKeyStrategy, AsyncHandler<?> asyncHandler)
public boolean preemptChannel(AsyncHandler<?> asyncHandler, String poolKey) throws IOException
IOException
public void replayRequest(NettyResponseFuture<?> future, FilterContext fc, org.jboss.netty.channel.Channel channel) throws IOException
IOException
public boolean isClosed()
Copyright © 2014. All Rights Reserved.