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
FieldsModifier and TypeFieldDescriptionprivate booleanprivate final ChannelHandlerContextprivate final ChannelPromiseprivate final Future<?> Fields inherited from interface ChannelFutureListener
CLOSE, CLOSE_ON_FAILURE, FIRE_EXCEPTION_ON_FAILURE -
Constructor Summary
ConstructorsConstructorDescriptionClosingChannelFutureListener(ChannelHandlerContext ctx, ChannelPromise promise) ClosingChannelFutureListener(ChannelHandlerContext ctx, ChannelPromise promise, long timeout, java.util.concurrent.TimeUnit unit) -
Method Summary
Modifier and TypeMethodDescriptionprivate voiddoClose()voidoperationComplete(ChannelFuture sentGoAwayFuture) Invoked when the operation associated with theFuturehas been completed.Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
-
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, java.util.concurrent.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()
-