| Modifier and Type | Method and Description |
|---|---|
| public void | closeStream(Http2Stream
the stream to be closed and deactivated. stream, Future<Void> 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, Future<Void> future)Closes the local side of the |
| public void | closeStreamRemote(Http2Stream
the stream to be half closed. stream, Future<Void> future)Closes the remote side of the |
| public Future | 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, Buffer Http2Error.For diagnostic purposes (carries no semantic value). debugData)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
Promise was failed as well.the error. cause)Processes the given error. |
| public Future | 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)Http2Error.Ensure the stream identified by |
| closeStream | back to summary |
|---|---|
| public void closeStream(Http2Stream stream, Future<Void> future) Closes and deactivates the given
| |
| closeStreamLocal | back to summary |
|---|---|
| public void closeStreamLocal(Http2Stream stream, Future<Void> future) Closes the local side of the
| |
| closeStreamRemote | back to summary |
|---|---|
| public void closeStreamRemote(Http2Stream stream, Future<Void> future) Closes the remote side of the
| |
| goAway | back to summary |
|---|---|
| public Future 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 Future Ensure the stream identified by
| |