Http2DataFrame implementation.
| Modifier and Type | Field and Description |
|---|---|
| private final Buffer | |
| private final boolean | |
| private final int | |
| private final int |
| Access | Constructor and Description |
|---|---|
| public | DefaultHttp2DataFrame(Send<Buffer>
non- content)null payloadEquivalent to |
| public | DefaultHttp2DataFrame(boolean
whether this data should terminate the stream endStream)Equivalent to |
| public | DefaultHttp2DataFrame(Send<Buffer>
non- content, boolean null payloadwhether this data should terminate the stream endStream)Equivalent to |
| public | DefaultHttp2DataFrame(Send<Buffer>
non- content, boolean null payloadwhether this data should terminate the stream endStream, int additional bytes that should be added to obscure the true content size. Must be between 0 and
256 (inclusive). padding)Construct a new data message. |
| private |
| Modifier and Type | Method and Description |
|---|---|
| public void | |
| public Buffer | |
| public DefaultHttp2DataFrame | copy()
Implements io. |
| public boolean | equals(Object
the reference object with which to compare. o)Overrides io. true if o has equal stream to this object.
|
| public int | hashCode()
Overrides io. |
| public int | initialFlowControlledBytes()
Implements io. content() is consumed
this will not change.
|
| public boolean | |
| public boolean | isEndStream()
Implements io. true if the END_STREAM flag is set.
|
| public String | name()
Implements io. |
| public int | |
| public Send | send()
Implements io. |
| public DefaultHttp2DataFrame | stream(Http2FrameStream stream)
Overrides io. Implements io. Http2FrameStream object for this frame.
|
| public String | |
| public DefaultHttp2DataFrame | touch(Object
An optional hint about this access and its context. May be hint)null.Overrides default io. |
| content | back to summary |
|---|---|
| private final Buffer content | |
| endStream | back to summary |
|---|---|
| private final boolean endStream | |
| initialFlowControlledBytes | back to summary |
|---|---|
| private final int initialFlowControlledBytes | |
| padding | back to summary |
|---|---|
| private final int padding | |
| DefaultHttp2DataFrame | back to summary |
|---|---|
| public DefaultHttp2DataFrame(Send<Buffer> content) Equivalent to | |
| DefaultHttp2DataFrame | back to summary |
|---|---|
| public DefaultHttp2DataFrame(boolean endStream) Equivalent to
| |
| DefaultHttp2DataFrame | back to summary |
|---|---|
| public DefaultHttp2DataFrame(Send<Buffer> content, boolean endStream) Equivalent to | |
| DefaultHttp2DataFrame | back to summary |
|---|---|
| public DefaultHttp2DataFrame(Send<Buffer> content, boolean endStream, int padding) Construct a new data message. | |
| DefaultHttp2DataFrame | back to summary |
|---|---|
| private DefaultHttp2DataFrame(Buffer content, boolean endStream, int padding) | |
| close | back to summary |
|---|---|
| public void close() Implements io. Doc from io. Close the resource, making it inaccessible. Note, this method is not thread-safe unless otherwise specified.
| |
| content | back to summary |
|---|---|
| public Buffer content() Implements io. Doc from io. Payload of DATA frame. Will not be
| |
| copy | back to summary |
|---|---|
| public DefaultHttp2DataFrame copy() Implements io. Doc from io. Produce a copy of this data frame, which contain a copy of the frame contents.
| |
| equals | back to summary |
|---|---|
| public boolean equals(Object o) Overrides io. Doc from io. Returns
| |
| hashCode | back to summary |
|---|---|
| public int hashCode() Overrides io. Doc from java. Returns a hash code value for this object. This method is
supported for the benefit of hash tables such as those provided by
The general contract of
| |
| initialFlowControlledBytes | back to summary |
|---|---|
| public int initialFlowControlledBytes() Implements io. Doc from io. Returns the number of bytes that are flow-controlled initially, so even if the
| |
| isAccessible | back to summary |
|---|---|
| public boolean isAccessible() Implements io. Doc from io. Check if this object is accessible. | |
| isEndStream | back to summary |
|---|---|
| public boolean isEndStream() Implements io. Doc from io. Returns
| |
| 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.
| |
| padding | back to summary |
|---|---|
| public int padding() Implements io. Doc from io. Frame padding to use. Will be non-negative and less than 256.
| |
| send | back to summary |
|---|---|
| public Send Implements io. Doc from io. Send this object instance to another Thread, transferring the ownership to the recipient. The object must be in a state where it can be sent, which includes at least being accessible. When sent, this instance will immediately become inaccessible, as if by closing it. All attempts at accessing an object that has been sent, even if that object has not yet been received, should cause an exception to be thrown.
Calling
| |
| stream | back to summary |
|---|---|
| public DefaultHttp2DataFrame stream(Http2FrameStream stream) Overrides io. Implements io. Doc from io. Set the
| |
| toString | back to summary |
|---|---|
| public String toString() Overrides java. Doc from java. Returns a string representation of the object. | |
| touch | back to summary |
|---|---|
| public DefaultHttp2DataFrame touch(Object hint) 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.
| |