data - payload buffer for the frame. This buffer will be released by the codec.

padding - the number of padding bytes found at the end of the frame.

endOfStream - Indicates whether this is the last frame to be sent from the remote
endpoint for this stream.

Returns:

the number of bytes that have been processed by the application. The returned bytes
are used by the inbound flow controller to determine the appropriate time to expand
the inbound flow control window (i.e. send WINDOW_UPDATE). Returning a value
equal to the length of data + padding will effectively opt-out of
application-level flow control for this frame. Returning a value less than the length
of data + padding will defer the returning of the processed bytes,
which the application must later return via
Http2InboundFlowState#returnProcessedBytes(ChannelHandlerContext, int). The
returned value must be >= 0 and <= data.readableBytes() +
padding.

streamRemoved

Notifies the listener that the given stream has now been removed from the connection and
will no longer be returned via Http2Connection.stream(int). The connection may
maintain inactive streams for some time before removing them.

priorityTreeParentChanged

Notifies the listener that a priority tree parent change has occurred. This method will be invoked
in a top down order relative to the priority tree. This method will also be invoked after all tree
structure changes have been made and the tree is in steady state relative to the priority change
which caused the tree structure to change.