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 ChannelHandlerContext
ctx
(package private) WriteTimeoutHandler.WriteTimeoutTask
next
(package private) WriteTimeoutHandler.WriteTimeoutTask
prev
private ChannelPromise
promise
(package private) Future<?>
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 void
operationComplete(ChannelFuture future)
Invoked when the operation associated with theFuture
has been completed.void
run()
-
-
-
Field Detail
-
ctx
private final ChannelHandlerContext ctx
-
promise
private final ChannelPromise promise
-
prev
WriteTimeoutHandler.WriteTimeoutTask prev
-
next
WriteTimeoutHandler.WriteTimeoutTask next
-
scheduledFuture
Future<?> scheduledFuture
-
-
Constructor Detail
-
WriteTimeoutTask
WriteTimeoutTask(ChannelHandlerContext ctx, ChannelPromise promise)
-
-
Method Detail
-
run
public void run()
- Specified by:
run
in interfacejava.lang.Runnable
-
operationComplete
public void operationComplete(ChannelFuture future) throws java.lang.Exception
Description copied from interface:GenericFutureListener
Invoked when the operation associated with theFuture
has been completed.- Specified by:
operationComplete
in interfaceGenericFutureListener<ChannelFuture>
- Parameters:
future
- the sourceFuture
which called this callback- Throws:
java.lang.Exception
-
-