Http2GoAwayFrame implementation.
| Modifier and Type | Field and Description |
|---|---|
| private final long | |
| private int | |
| private final int |
| Access | Constructor and Description |
|---|---|
| public | DefaultHttp2GoAwayFrame(Http2Error
non- error)null reason for the go awayEquivalent to |
| public | DefaultHttp2GoAwayFrame(long
reason for the go away errorCode)Equivalent to |
| public | DefaultHttp2GoAwayFrame(Http2Error
non- error, Send<Buffer> null reason for the go awaynon- content)null debug data
|
| public | DefaultHttp2GoAwayFrame(long
reason for the go away errorCode, Send<Buffer> non- content)null debug dataConstruct a new GOAWAY message. |
| pack-priv | DefaultHttp2GoAwayFrame(int lastStreamId, long errorCode, Send<Buffer> content)
Construct a new GOAWAY message. |
| private |
| Modifier and Type | Method and Description |
|---|---|
| public Buffer | content()
Implements io. |
| public Http2GoAwayFrame | copy()
Implements io. |
| public boolean | equals(Object
The reference object with which to compare. o)Overrides io. equals operation is restricted to work only with instances of the same class.
|
| public long | errorCode()
Implements io. |
| public int | extraStreamIds()
Implements io. |
| public int | hashCode()
Overrides io. |
| public int | lastStreamId()
Implements io. -1 else.
|
| public String | name()
Implements io. |
| protected Http2GoAwayFrame | receive(Buffer
The buf)Buffer that is received by the recipient,
and needs to be wrapped in a new BufferHolder instance.Implements abstract io. BufferHolder is received by the recipient.
|
| public Http2GoAwayFrame | setExtraStreamIds(int extraStreamIds)
Implements io. |
| public String | |
| public Http2GoAwayFrame | touch(Object
An optional hint about this access and its context. May be hint)null.Overrides io. Overrides default io. |
| errorCode | back to summary |
|---|---|
| private final long errorCode | |
| extraStreamIds | back to summary |
|---|---|
| private int extraStreamIds | |
| lastStreamId | back to summary |
|---|---|
| private final int lastStreamId | |
| DefaultHttp2GoAwayFrame | back to summary |
|---|---|
| public DefaultHttp2GoAwayFrame(Http2Error error) Equivalent to
| |
| DefaultHttp2GoAwayFrame | back to summary |
|---|---|
| public DefaultHttp2GoAwayFrame(long errorCode) Equivalent to
| |
| DefaultHttp2GoAwayFrame | back to summary |
|---|---|
public DefaultHttp2GoAwayFrame(Http2Error error, Send<Buffer> content)
| |
| DefaultHttp2GoAwayFrame | back to summary |
|---|---|
| public DefaultHttp2GoAwayFrame(long errorCode, Send<Buffer> content) Construct a new GOAWAY message. | |
| DefaultHttp2GoAwayFrame | back to summary |
|---|---|
| pack-priv DefaultHttp2GoAwayFrame(int lastStreamId, long errorCode, Send<Buffer> content) Construct a new GOAWAY message.
This constructor is for internal use only. A user should not have to specify a specific last stream identifier,
but use | |
| DefaultHttp2GoAwayFrame | back to summary |
|---|---|
| private DefaultHttp2GoAwayFrame(int lastStreamId, long errorCode, Buffer content) | |
| content | back to summary |
|---|---|
| public Buffer content() Implements io. Doc from io. Optional debugging information describing cause the GOAWAY. Will not be
| |
| copy | back to summary |
|---|---|
| public Http2GoAwayFrame copy() Implements io. Doc from io. Produce a copy of this GOAWAY frame, which contain a copy of the frame contents.
| |
| equals | back to summary |
|---|---|
| public boolean equals(Object o) Overrides io. Doc from io. This implementation of the | |
| errorCode | back to summary |
|---|---|
| public long errorCode() Implements io. Doc from io. The reason for beginning closure of the connection. Represented as an HTTP/2 error code.
| |
| extraStreamIds | back to summary |
|---|---|
| public int extraStreamIds() Implements io. Doc from io. 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.
| |
| hashCode | back to summary |
|---|---|
| public int hashCode() Overrides io. Doc from java. Returns a hash code value for the object. This method is
supported for the benefit of hash tables such as those provided by
The general contract of
| |
| lastStreamId | back to summary |
|---|---|
| public int lastStreamId() Implements io. Doc from io. Returns the last stream identifier if set, or
| |
| name | back to summary |
|---|---|
| public String name() Implements io. Doc from io. Returns the name of the HTTP/2 frame e.g. DATA, GOAWAY, etc.
| |
| receive | back to summary |
|---|---|
| protected Http2GoAwayFrame receive(Buffer buf) Implements abstract io. Doc from io. Called when a sent
| |
| setExtraStreamIds | back to summary |
|---|---|
| public Http2GoAwayFrame setExtraStreamIds(int extraStreamIds) Implements io. Doc from io. Sets the number of IDs to reserve for the receiver to use while GOAWAY is in transit.
| |
| toString | back to summary |
|---|---|
| public String toString() Overrides java. Doc from java. Returns a string representation of the object. | |
| touch | back to summary |
|---|---|
| public Http2GoAwayFrame touch(Object hint) Overrides io. Overrides default io. Doc from io. Record the current access location for debugging purposes. This information may be included if the resource throws a life-cycle related exception, or if it leaks. If this resource has already been closed, then this method has no effect.
| |