The last stream identifier must not be set by the application, but instead the
relative extraStreamIds() should be used. The lastStreamId() will only be
set for incoming GOAWAY frames by the HTTP/2 codec.
Graceful shutdown as described in the HTTP/2 spec can be accomplished by calling
#setExtraStreamIds(Integer.MAX_VALUE).
| Modifier and Type | Method and Description |
|---|---|
| public Buffer | |
| public Http2GoAwayFrame | |
| public long | |
| public int | |
| public int | |
| public Http2GoAwayFrame | Returns: thisSets the number of IDs to reserve for the receiver to use while GOAWAY is in transit. |
| content | back to summary |
|---|---|
| public Buffer content() Optional debugging information describing cause the GOAWAY. Will not be | |
| copy | back to summary |
|---|---|
| public Http2GoAwayFrame copy() Produce a copy of this GOAWAY frame, which contain a copy of the frame contents.
| |
| errorCode | back to summary |
|---|---|
| public long errorCode() The reason for beginning closure of the connection. Represented as an HTTP/2 error code. | |
| extraStreamIds | back to summary |
|---|---|
| public int extraStreamIds() The number of IDs to reserve for the receiver to use while GOAWAY is in transit. This allows for new streams currently en route to still be created, up to a point, which allows for very graceful shutdown of both sides. | |
| lastStreamId | back to summary |
|---|---|
| public int lastStreamId() Returns the last stream identifier if set, or | |
| setExtraStreamIds | back to summary |
|---|---|
| public Http2GoAwayFrame setExtraStreamIds(int extraStreamIds) Sets the number of IDs to reserve for the receiver to use while GOAWAY is in transit.
| |