Http2DataFrame implementation.
| Modifier and Type | Field and Description |
|---|---|
| private final ByteBuf | |
| private final boolean | |
| private final int | |
| private final int |
| Access | Constructor and Description |
|---|---|
| public | DefaultHttp2DataFrame(ByteBuf
non- content)null payloadEquivalent to |
| public | DefaultHttp2DataFrame(boolean
whether this data should terminate the stream endStream)Equivalent to |
| public | DefaultHttp2DataFrame(ByteBuf
non- content, boolean null payloadwhether this data should terminate the stream endStream)Equivalent to |
| public | DefaultHttp2DataFrame(ByteBuf
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. |
| Modifier and Type | Method and Description |
|---|---|
| public ByteBuf | |
| public DefaultHttp2DataFrame | copy()
Implements io. ByteBufHolder.
|
| public DefaultHttp2DataFrame | duplicate()
Implements io. ByteBufHolder.
|
| 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 | isEndStream()
Implements io. true if the END_STREAM flag is set.
|
| public String | name()
Implements io. |
| public int | |
| public int | refCnt()
Implements io. |
| public boolean | release()
Implements io. 1 and deallocates this object if the reference count reaches at
0.
|
| public boolean | release(int decrement)
Implements io. decrement and deallocates this object if the reference
count reaches at 0.
|
| public DefaultHttp2DataFrame | replace(ByteBuf content)
Implements io. ByteBufHolder which contains the specified content.
|
| public DefaultHttp2DataFrame | retain()
Implements io. 1.
|
| public DefaultHttp2DataFrame | retain(int increment)
Implements io. increment.
|
| public DefaultHttp2DataFrame | retainedDuplicate()
Implements io. ByteBufHolder.
|
| public DefaultHttp2DataFrame | stream(Http2FrameStream stream)
Overrides io. Implements io. Http2FrameStream object for this frame.
|
| public String | |
| public DefaultHttp2DataFrame | touch()
Implements io. |
| public DefaultHttp2DataFrame | touch(Object hint)
Implements io. |
| content | back to summary |
|---|---|
| private final ByteBuf 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(ByteBuf content) Equivalent to
| |
| DefaultHttp2DataFrame | back to summary |
|---|---|
| public DefaultHttp2DataFrame(boolean endStream) Equivalent to
| |
| DefaultHttp2DataFrame | back to summary |
|---|---|
| public DefaultHttp2DataFrame(ByteBuf content, boolean endStream) Equivalent to
| |
| DefaultHttp2DataFrame | back to summary |
|---|---|
| public DefaultHttp2DataFrame(ByteBuf content, boolean endStream, int padding) Construct a new data message.
| |
| content | back to summary |
|---|---|
| public ByteBuf 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. Creates a deep copy of this
| |
| duplicate | back to summary |
|---|---|
| public DefaultHttp2DataFrame duplicate() Implements io. Doc from io. Duplicates this
| |
| 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
| |
| 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.
| |
| refCnt | back to summary |
|---|---|
| public int refCnt() Implements io. Doc from io. Returns the reference count of this object. If
| |
| release | back to summary |
|---|---|
| public boolean release() Implements io. Doc from io. Decreases the reference count by
| |
| release | back to summary |
|---|---|
| public boolean release(int decrement) Implements io. Doc from io. Decreases the reference count by the specified
| |
| replace | back to summary |
|---|---|
| public DefaultHttp2DataFrame replace(ByteBuf content) Implements io. Doc from io. Returns a new
| |
| retain | back to summary |
|---|---|
| public DefaultHttp2DataFrame retain() Implements io. Doc from io. Increases the reference count by
| |
| retain | back to summary |
|---|---|
| public DefaultHttp2DataFrame retain(int increment) Implements io. Doc from io. Increases the reference count by the specified
| |
| retainedDuplicate | back to summary |
|---|---|
| public DefaultHttp2DataFrame retainedDuplicate() Implements io. Doc from io. Duplicates this
| |
| 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() Implements io. Doc from io. Records the current access location of this object for debugging purposes.
If this object is determined to be leaked, the information recorded by this operation will be provided to you
via
| |
| touch | back to summary |
|---|---|
| public DefaultHttp2DataFrame touch(Object hint) Implements io. Doc from io. Records the current access location of this object with an additional arbitrary information for debugging
purposes. If this object is determined to be leaked, the information recorded by this operation will be
provided to you via
| |