Class TimeoutTimerTask
- java.lang.Object
-
- org.asynchttpclient.netty.timeout.TimeoutTimerTask
-
- All Implemented Interfaces:
io.netty.util.TimerTask
- Direct Known Subclasses:
ReadTimeoutTimerTask,RequestTimeoutTimerTask
public abstract class TimeoutTimerTask extends Object implements io.netty.util.TimerTask
A timeout that can be armed either on aTimeror on an event loop; which one an exchange uses isAsyncHttpClientConfig.isUseEventLoopTimeouts(). An event loop schedulesRunnables, so each subclass implements that as a second entry point into the same body. This class stays aTimerTaskalone:Runnable#rundeclares no checked exception, so arun()here would have to catch whatTimerTask.run(Timeout)declares and no subclass throws.
-
-
Field Summary
Fields Modifier and Type Field Description protected AtomicBooleandoneprotected NettyRequestSenderrequestSender
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description voidclean()When the timeout is cancelled, it could still be referenced for quite some time in the Timer.
-
-
-
Field Detail
-
done
protected final AtomicBoolean done
-
requestSender
protected final NettyRequestSender requestSender
-
-