Package io.netty.handler.codec.http2
Class Http2ConnectionHandler.ClosingChannelFutureListener
- java.lang.Object
-
- io.netty.handler.codec.http2.Http2ConnectionHandler.ClosingChannelFutureListener
-
- All Implemented Interfaces:
ChannelFutureListener
,GenericFutureListener<ChannelFuture>
,java.util.EventListener
- Enclosing class:
- Http2ConnectionHandler
private static final class Http2ConnectionHandler.ClosingChannelFutureListener extends java.lang.Object implements ChannelFutureListener
Closes the channel when the future completes.
-
-
Field Summary
Fields Modifier and Type Field Description private boolean
closed
private ChannelHandlerContext
ctx
private ChannelPromise
promise
private ScheduledFuture<?>
timeoutTask
-
Fields inherited from interface io.netty.channel.ChannelFutureListener
CLOSE, CLOSE_ON_FAILURE, FIRE_EXCEPTION_ON_FAILURE
-
-
Constructor Summary
Constructors Constructor Description ClosingChannelFutureListener(ChannelHandlerContext ctx, ChannelPromise promise)
ClosingChannelFutureListener(ChannelHandlerContext ctx, ChannelPromise promise, long timeout, java.util.concurrent.TimeUnit unit)
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description private void
doClose()
void
operationComplete(ChannelFuture sentGoAwayFuture)
Invoked when the operation associated with theFuture
has been completed.
-
-
-
Field Detail
-
ctx
private final ChannelHandlerContext ctx
-
promise
private final ChannelPromise promise
-
timeoutTask
private final ScheduledFuture<?> timeoutTask
-
closed
private boolean closed
-
-
Constructor Detail
-
ClosingChannelFutureListener
ClosingChannelFutureListener(ChannelHandlerContext ctx, ChannelPromise promise)
-
ClosingChannelFutureListener
ClosingChannelFutureListener(ChannelHandlerContext ctx, ChannelPromise promise, long timeout, java.util.concurrent.TimeUnit unit)
-
-
Method Detail
-
operationComplete
public void operationComplete(ChannelFuture sentGoAwayFuture)
Description copied from interface:GenericFutureListener
Invoked when the operation associated with theFuture
has been completed.- Specified by:
operationComplete
in interfaceGenericFutureListener<ChannelFuture>
- Parameters:
sentGoAwayFuture
- the sourceFuture
which called this callback
-
doClose
private void doClose()
-
-