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 voidabort(io.netty.channel.Channel channel, NettyResponseFuture<?> future, Throwable t)booleanapplyIoExceptionFiltersAndReplayRequest(NettyResponseFuture<?> future, IOException e, io.netty.channel.Channel channel)voiddrainChannelAndExecuteNextRequest(io.netty.channel.Channel channel, NettyResponseFuture<?> future, Request nextRequest)voiddrainChannelAndExecuteNextRequest(io.netty.channel.Channel channel, NettyResponseFuture<?> future, Request nextRequest, io.netty.util.concurrent.Future<io.netty.channel.Channel> whenHandshaked)voidhandleUnexpectedClosedChannel(io.netty.channel.Channel channel, NettyResponseFuture<?> future)booleanisClosed()voidreplayRequest(NettyResponseFuture<?> future, FilterContext fc, io.netty.channel.Channel channel)booleanretry(NettyResponseFuture<?> future)<T> voidsendNextRequest(Request request, NettyResponseFuture<T> future)<T> ListenableFuture<T>sendRequest(Request request, AsyncHandler<T> asyncHandler, NettyResponseFuture<T> future)<T> voidwriteRequest(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)
-
-