SpdyDataFrame implementation.
| Access | Constructor and Description |
|---|---|
| public | |
| public | DefaultSpdyDataFrame(int
the Stream-ID of this frame streamId, ByteBuf the payload of the frame. Can not exceed data)SpdyCodecUtil#SPDY_MAX_LENGTHCreates a new instance. |
| Modifier and Type | Method and Description |
|---|---|
| public ByteBuf | content()
Implements io. |
| public SpdyDataFrame | copy()
Implements io. ByteBufHolder.
|
| public SpdyDataFrame | duplicate()
Implements io. ByteBufHolder.
|
| 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 SpdyDataFrame | replace(ByteBuf content)
Implements io. ByteBufHolder which contains the specified content.
|
| public SpdyDataFrame | retain()
Implements io. 1.
|
| public SpdyDataFrame | retain(int increment)
Implements io. increment.
|
| public SpdyDataFrame | retainedDuplicate()
Implements io. ByteBufHolder.
|
| public SpdyDataFrame | setLast(boolean last)
Overrides io. Implements io. |
| public SpdyDataFrame | setStreamId(int streamId)
Overrides io. Implements io. |
| public String | |
| public SpdyDataFrame | touch()
Implements io. |
| public SpdyDataFrame | touch(Object hint)
Implements io. |
| private static ByteBuf |
| data | back to summary |
|---|---|
| private final ByteBuf data | |
| DefaultSpdyDataFrame | back to summary |
|---|---|
| public DefaultSpdyDataFrame(int streamId) Creates a new instance.
| |
| DefaultSpdyDataFrame | back to summary |
|---|---|
| public DefaultSpdyDataFrame(int streamId, ByteBuf data) Creates a new instance.
| |
| content | back to summary |
|---|---|
| public ByteBuf content() Implements io. Doc from io. Returns the data payload of this frame. If there is no data payload
| |
| copy | back to summary |
|---|---|
| public SpdyDataFrame copy() Implements io. Doc from io. Creates a deep copy of this
| |
| duplicate | back to summary |
|---|---|
| public SpdyDataFrame duplicate() Implements io. Doc from io. Duplicates this
| |
| 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 SpdyDataFrame replace(ByteBuf content) Implements io. Doc from io. Returns a new
| |
| retain | back to summary |
|---|---|
| public SpdyDataFrame retain() Implements io. Doc from io. Increases the reference count by
| |
| retain | back to summary |
|---|---|
| public SpdyDataFrame retain(int increment) Implements io. Doc from io. Increases the reference count by the specified
| |
| retainedDuplicate | back to summary |
|---|---|
| public SpdyDataFrame retainedDuplicate() Implements io. Doc from io. Duplicates this
| |
| setLast | back to summary |
|---|---|
| public SpdyDataFrame setLast(boolean last) Overrides io. Implements io. Doc from io. Sets if this frame is the last frame to be transmitted on the stream.
| |
| setStreamId | back to summary |
|---|---|
| public SpdyDataFrame setStreamId(int streamId) Overrides io. Implements io. Doc from io. Sets the Stream-ID of this frame. The Stream-ID must be positive.
| |
| toString | back to summary |
|---|---|
| public String toString() Overrides java. Doc from java. Returns a string representation of the object. | |
| touch | back to summary |
|---|---|
| public SpdyDataFrame 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 SpdyDataFrame 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
| |
| validate | back to summary |
|---|---|
| private static ByteBuf validate(ByteBuf data) | |