public final class NettyRequestSender extends Object
Constructor and Description |
---|
NettyRequestSender(AsyncHttpClientConfig config,
ChannelManager channelManager,
io.netty.util.Timer nettyTimer,
AsyncHttpClientState clientState) |
Modifier and Type | Method and Description |
---|---|
void |
abort(Channel channel,
NettyResponseFuture<?> future,
Throwable t) |
boolean |
applyIoExceptionFiltersAndReplayRequest(NettyResponseFuture<?> future,
IOException e,
Channel channel) |
void |
drainChannelAndExecuteNextRequest(Channel channel,
NettyResponseFuture<?> future,
Request nextRequest) |
void |
handleUnexpectedClosedChannel(Channel channel,
NettyResponseFuture<?> future) |
boolean |
isClosed() |
Callback |
newExecuteNextRequestCallback(NettyResponseFuture<?> future,
Request nextRequest) |
void |
replayRequest(NettyResponseFuture<?> future,
FilterContext fc,
Channel channel) |
boolean |
retry(NettyResponseFuture<?> future) |
<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,
Channel channel) |
public NettyRequestSender(AsyncHttpClientConfig config, ChannelManager channelManager, io.netty.util.Timer nettyTimer, AsyncHttpClientState clientState)
public <T> ListenableFuture<T> sendRequest(Request request, AsyncHandler<T> asyncHandler, NettyResponseFuture<T> future, boolean reclaimCache)
public <T> void writeRequest(NettyResponseFuture<T> future, Channel channel)
public void abort(Channel channel, NettyResponseFuture<?> future, Throwable t)
public void handleUnexpectedClosedChannel(Channel channel, NettyResponseFuture<?> future)
public boolean retry(NettyResponseFuture<?> future)
public boolean applyIoExceptionFiltersAndReplayRequest(NettyResponseFuture<?> future, IOException e, Channel channel)
public <T> void sendNextRequest(Request request, NettyResponseFuture<T> future)
public void replayRequest(NettyResponseFuture<?> future, FilterContext fc, Channel channel)
public boolean isClosed()
public final Callback newExecuteNextRequestCallback(NettyResponseFuture<?> future, Request nextRequest)
public void drainChannelAndExecuteNextRequest(Channel channel, NettyResponseFuture<?> future, Request nextRequest)
Copyright © 2016. All Rights Reserved.