| Modifier and Type | Method and Description |
|---|---|
| public void | closeStream(Http2Stream
the stream to be closed and deactivated. stream, ChannelFuture when completed if future)Http2Connection#numActiveStreams() is 0 then the underlying channel
will be closed.Closes and deactivates the given |
| public void | closeStreamLocal(Http2Stream
the stream to be half closed. stream, ChannelFuture future)Closes the local side of the |
| public void | closeStreamRemote(Http2Stream
the stream to be half closed. stream, ChannelFuture future)Closes the remote side of the |
| public ChannelFuture | Returns: Will be considered successful when the connection and stream state has been updated, and aGO_AWAY frame has been sent to the peer. If the stream state has already been updated and a
GO_AWAY frame has been sent then the return status may indicate success immediately.The context used for communication and buffer allocation if necessary. ctx, int The last stream that the local endpoint is claiming it will accept. lastStreamId, long The rational as to why the connection is being closed. See errorCode, ByteBuf Http2Error.For diagnostic purposes (carries no semantic value). debugData, ChannelPromise Used to indicate the return status of this operation. promise)Prevents the peer from creating streams and close the connection if |
| public void | onError(ChannelHandlerContext
The context used for communication and buffer allocation if necessary. ctx, boolean true if the error was caused by an outbound operation and so the corresponding
ChannelPromise was failed as well.the error. cause)Processes the given error. |
| public ChannelFuture | Returns: Will be considered successful when the connection and stream state has been updated, and aRST_STREAM frame has been sent to the peer. If the stream state has already been updated and a
RST_STREAM frame has been sent then the return status may indicate success immediately.The context used for communication and buffer allocation if necessary. ctx, int The identifier of the stream to reset. streamId, long Justification as to why this stream is being reset. See errorCode, ChannelPromise Http2Error.Used to indicate the return status of this operation. promise)Ensure the stream identified by |
| closeStream | back to summary |
|---|---|
| public void closeStream(Http2Stream stream, ChannelFuture future) Closes and deactivates the given
| |
| closeStreamLocal | back to summary |
|---|---|
| public void closeStreamLocal(Http2Stream stream, ChannelFuture future) Closes the local side of the
| |
| closeStreamRemote | back to summary |
|---|---|
| public void closeStreamRemote(Http2Stream stream, ChannelFuture future) Closes the remote side of the
| |
| goAway | back to summary |
|---|---|
| public ChannelFuture goAway(ChannelHandlerContext ctx, int lastStreamId, long errorCode, ByteBuf debugData, ChannelPromise promise) Prevents the peer from creating streams and close the connection if
| |
| onError | back to summary |
|---|---|
| public void onError(ChannelHandlerContext ctx, boolean outbound, Throwable cause) Processes the given error.
| |
| resetStream | back to summary |
|---|---|
| public ChannelFuture resetStream(ChannelHandlerContext ctx, int streamId, long errorCode, ChannelPromise promise) Ensure the stream identified by
| |