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>
,EventListener
- Enclosing class:
Http2ConnectionHandler
private static final class Http2ConnectionHandler.ClosingChannelFutureListener
extends Object
implements ChannelFutureListener
Closes the channel when the future completes.
-
Field Summary
FieldsModifier and TypeFieldDescriptionprivate boolean
private final ChannelHandlerContext
private final ChannelPromise
private final Future
<?> Fields inherited from interface io.netty.channel.ChannelFutureListener
CLOSE, CLOSE_ON_FAILURE, FIRE_EXCEPTION_ON_FAILURE
-
Constructor Summary
ConstructorsConstructorDescriptionClosingChannelFutureListener
(ChannelHandlerContext ctx, ChannelPromise promise) ClosingChannelFutureListener
(ChannelHandlerContext ctx, ChannelPromise promise, long timeout, TimeUnit unit) -
Method Summary
Modifier and TypeMethodDescriptionprivate void
doClose()
void
operationComplete
(ChannelFuture sentGoAwayFuture) Invoked when the operation associated with theFuture
has been completed.
-
Field Details
-
ctx
-
promise
-
timeoutTask
-
closed
private boolean closed
-
-
Constructor Details
-
ClosingChannelFutureListener
ClosingChannelFutureListener(ChannelHandlerContext ctx, ChannelPromise promise) -
ClosingChannelFutureListener
ClosingChannelFutureListener(ChannelHandlerContext ctx, ChannelPromise promise, long timeout, TimeUnit unit)
-
-
Method Details
-
operationComplete
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()
-