Package io.netty.handler.timeout
Class WriteTimeoutHandler.WriteTimeoutTask
- java.lang.Object
-
- io.netty.handler.timeout.WriteTimeoutHandler.WriteTimeoutTask
-
- All Implemented Interfaces:
ChannelFutureListener,GenericFutureListener<ChannelFuture>,java.lang.Runnable,java.util.EventListener
- Enclosing class:
- WriteTimeoutHandler
private final class WriteTimeoutHandler.WriteTimeoutTask extends java.lang.Object implements java.lang.Runnable, ChannelFutureListener
-
-
Field Summary
Fields Modifier and Type Field Description private ChannelHandlerContextctx(package private) WriteTimeoutHandler.WriteTimeoutTasknext(package private) WriteTimeoutHandler.WriteTimeoutTaskprevprivate ChannelPromisepromise(package private) java.util.concurrent.ScheduledFuture<?>scheduledFuture-
Fields inherited from interface io.netty.channel.ChannelFutureListener
CLOSE, CLOSE_ON_FAILURE, FIRE_EXCEPTION_ON_FAILURE
-
-
Constructor Summary
Constructors Constructor Description WriteTimeoutTask(ChannelHandlerContext ctx, ChannelPromise promise)
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description voidoperationComplete(ChannelFuture future)Invoked when the operation associated with theFuturehas been completed.voidrun()
-
-
-
Field Detail
-
ctx
private final ChannelHandlerContext ctx
-
promise
private final ChannelPromise promise
-
prev
WriteTimeoutHandler.WriteTimeoutTask prev
-
next
WriteTimeoutHandler.WriteTimeoutTask next
-
scheduledFuture
java.util.concurrent.ScheduledFuture<?> scheduledFuture
-
-
Constructor Detail
-
WriteTimeoutTask
WriteTimeoutTask(ChannelHandlerContext ctx, ChannelPromise promise)
-
-
Method Detail
-
run
public void run()
- Specified by:
runin interfacejava.lang.Runnable
-
operationComplete
public void operationComplete(ChannelFuture future) throws java.lang.Exception
Description copied from interface:GenericFutureListenerInvoked when the operation associated with theFuturehas been completed.- Specified by:
operationCompletein interfaceGenericFutureListener<ChannelFuture>- Parameters:
future- the sourceFuturewhich called this callback- Throws:
java.lang.Exception
-
-