Class NettyRequestSender
- java.lang.Object
-
- org.asynchttpclient.netty.request.NettyRequestSender
-
public final class NettyRequestSender extends Object
-
-
Constructor Summary
Constructors Constructor Description NettyRequestSender(AsyncHttpClientConfig config, ChannelManager channelManager, io.netty.util.Timer nettyTimer, AsyncHttpClientState clientState)
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description void
abort(io.netty.channel.Channel channel, NettyResponseFuture<?> future, Throwable t)
boolean
applyIoExceptionFiltersAndReplayRequest(NettyResponseFuture<?> future, IOException e, io.netty.channel.Channel channel)
void
drainChannelAndExecuteNextRequest(io.netty.channel.Channel channel, NettyResponseFuture<?> future, Request nextRequest)
void
drainChannelAndExecuteNextRequest(io.netty.channel.Channel channel, NettyResponseFuture<?> future, Request nextRequest, io.netty.util.concurrent.Future<io.netty.channel.Channel> whenHandshaked)
void
handleUnexpectedClosedChannel(io.netty.channel.Channel channel, NettyResponseFuture<?> future)
boolean
isClosed()
void
replayRequest(NettyResponseFuture<?> future, FilterContext fc, io.netty.channel.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)
<T> void
writeRequest(NettyResponseFuture<T> future, io.netty.channel.Channel channel)
-
-
-
Constructor Detail
-
NettyRequestSender
public NettyRequestSender(AsyncHttpClientConfig config, ChannelManager channelManager, io.netty.util.Timer nettyTimer, AsyncHttpClientState clientState)
-
-
Method Detail
-
sendRequest
public <T> ListenableFuture<T> sendRequest(Request request, AsyncHandler<T> asyncHandler, NettyResponseFuture<T> future)
-
writeRequest
public <T> void writeRequest(NettyResponseFuture<T> future, io.netty.channel.Channel channel)
-
abort
public void abort(io.netty.channel.Channel channel, NettyResponseFuture<?> future, Throwable t)
-
handleUnexpectedClosedChannel
public void handleUnexpectedClosedChannel(io.netty.channel.Channel channel, NettyResponseFuture<?> future)
-
retry
public boolean retry(NettyResponseFuture<?> future)
-
applyIoExceptionFiltersAndReplayRequest
public boolean applyIoExceptionFiltersAndReplayRequest(NettyResponseFuture<?> future, IOException e, io.netty.channel.Channel channel)
-
sendNextRequest
public <T> void sendNextRequest(Request request, NettyResponseFuture<T> future)
-
replayRequest
public void replayRequest(NettyResponseFuture<?> future, FilterContext fc, io.netty.channel.Channel channel)
-
isClosed
public boolean isClosed()
-
drainChannelAndExecuteNextRequest
public void drainChannelAndExecuteNextRequest(io.netty.channel.Channel channel, NettyResponseFuture<?> future, Request nextRequest)
-
drainChannelAndExecuteNextRequest
public void drainChannelAndExecuteNextRequest(io.netty.channel.Channel channel, NettyResponseFuture<?> future, Request nextRequest, io.netty.util.concurrent.Future<io.netty.channel.Channel> whenHandshaked)
-
-