Package io.netty.handler.codec.http2
Class DefaultHttp2ConnectionEncoder.FlowControlledBase
java.lang.Object
io.netty.handler.codec.http2.DefaultHttp2ConnectionEncoder.FlowControlledBase
- All Implemented Interfaces:
ChannelFutureListener
,Http2RemoteFlowController.FlowControlled
,GenericFutureListener<ChannelFuture>
,EventListener
- Direct Known Subclasses:
DefaultHttp2ConnectionEncoder.FlowControlledData
,DefaultHttp2ConnectionEncoder.FlowControlledHeaders
- Enclosing class:
DefaultHttp2ConnectionEncoder
public abstract class DefaultHttp2ConnectionEncoder.FlowControlledBase
extends Object
implements Http2RemoteFlowController.FlowControlled, ChannelFutureListener
Common base type for payloads to deliver via flow-control.
-
Field Summary
FieldsModifier and TypeFieldDescriptionprotected boolean
protected int
protected ChannelPromise
protected final Http2Stream
Fields inherited from interface io.netty.channel.ChannelFutureListener
CLOSE, CLOSE_ON_FAILURE, FIRE_EXCEPTION_ON_FAILURE
-
Constructor Summary
ConstructorsConstructorDescriptionFlowControlledBase
(Http2Stream stream, int padding, boolean endOfStream, ChannelPromise promise) -
Method Summary
Modifier and TypeMethodDescriptionvoid
operationComplete
(ChannelFuture future) Invoked when the operation associated with theFuture
has been completed.void
Called after this object has been successfully written.Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
Methods inherited from interface io.netty.handler.codec.http2.Http2RemoteFlowController.FlowControlled
error, merge, size, write
-
Field Details
-
stream
-
promise
-
endOfStream
protected boolean endOfStream -
padding
protected int padding
-
-
Constructor Details
-
FlowControlledBase
FlowControlledBase(Http2Stream stream, int padding, boolean endOfStream, ChannelPromise promise)
-
-
Method Details
-
writeComplete
public void writeComplete()Description copied from interface:Http2RemoteFlowController.FlowControlled
Called after this object has been successfully written.The
Http2RemoteFlowController
will make exactly one call to either this method orHttp2RemoteFlowController.FlowControlled.error(ChannelHandlerContext, Throwable)
.- Specified by:
writeComplete
in interfaceHttp2RemoteFlowController.FlowControlled
-
operationComplete
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:
Exception
-