Module io.netty.codec.http2
Package io.netty5.handler.codec.http2
Class DefaultHttp2ConnectionEncoder.FlowControlledBase
- java.lang.Object
-
- io.netty5.handler.codec.http2.DefaultHttp2ConnectionEncoder.FlowControlledBase
-
- All Implemented Interfaces:
Http2RemoteFlowController.FlowControlled,FutureListener<Void>
- Enclosing class:
- DefaultHttp2ConnectionEncoder
public abstract class DefaultHttp2ConnectionEncoder.FlowControlledBase extends Object implements Http2RemoteFlowController.FlowControlled, FutureListener<Void>
Common base type for payloads to deliver via flow-control.
-
-
Field Summary
Fields Modifier and Type Field Description protected booleanendOfStreamprotected intpaddingprotected Promise<Void>promiseprotected Http2Streamstream
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description voidoperationComplete(Future<? extends Void> future)Invoked when the operation associated with theFuturehas been completed.voidwriteComplete()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.netty5.handler.codec.http2.Http2RemoteFlowController.FlowControlled
error, merge, size, write
-
-
-
-
Field Detail
-
stream
protected final Http2Stream stream
-
endOfStream
protected boolean endOfStream
-
padding
protected int padding
-
-
Method Detail
-
writeComplete
public void writeComplete()
Description copied from interface:Http2RemoteFlowController.FlowControlledCalled after this object has been successfully written.The
Http2RemoteFlowControllerwill make exactly one call to either this method orHttp2RemoteFlowController.FlowControlled.error(ChannelHandlerContext, Throwable).- Specified by:
writeCompletein interfaceHttp2RemoteFlowController.FlowControlled
-
operationComplete
public void operationComplete(Future<? extends Void> future)
Description copied from interface:FutureListenerInvoked when the operation associated with theFuturehas been completed.- Specified by:
operationCompletein interfaceFutureListener<Void>- Parameters:
future- the sourceFuturewhich called this callback
-
-