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 booleanprivate final ChannelHandlerContextprivate final ChannelPromiseprivate 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 voiddoClose()voidoperationComplete(ChannelFuture sentGoAwayFuture) Invoked when the operation associated with theFuturehas 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:GenericFutureListenerInvoked when the operation associated with theFuturehas been completed.- Specified by:
operationCompletein interfaceGenericFutureListener<ChannelFuture>- Parameters:
sentGoAwayFuture- the sourceFuturewhich called this callback
-
doClose
private void doClose()
-