public class DefaultSpdyDataFrame extends DefaultSpdyStreamFrame implements SpdyDataFrame
SpdyDataFrame implementation.| 构造器和说明 |
|---|
DefaultSpdyDataFrame(int streamId)
Creates a new instance.
|
DefaultSpdyDataFrame(int streamId,
ByteBuf data)
Creates a new instance.
|
| 限定符和类型 | 方法和说明 |
|---|---|
ByteBuf |
content()
Returns the data payload of this frame.
|
SpdyDataFrame |
copy()
Creates a deep copy of this
ByteBufHolder. |
SpdyDataFrame |
duplicate()
Duplicates this
ByteBufHolder. |
int |
refCnt()
Returns the reference count of this object.
|
boolean |
release()
Decreases the reference count by
1 and deallocates this object if the reference count reaches at
0. |
boolean |
release(int decrement)
Decreases the reference count by the specified
decrement and deallocates this object if the reference
count reaches at 0. |
SpdyDataFrame |
replace(ByteBuf content)
Returns a new
ByteBufHolder which contains the specified content. |
SpdyDataFrame |
retain()
Increases the reference count by
1. |
SpdyDataFrame |
retain(int increment)
Increases the reference count by the specified
increment. |
SpdyDataFrame |
retainedDuplicate()
Duplicates this
ByteBufHolder. |
SpdyDataFrame |
setLast(boolean last)
Sets if this frame is the last frame to be transmitted on the stream.
|
SpdyDataFrame |
setStreamId(int streamId)
Sets the Stream-ID of this frame.
|
java.lang.String |
toString() |
SpdyDataFrame |
touch()
Records the current access location of this object for debugging purposes.
|
SpdyDataFrame |
touch(java.lang.Object hint)
Records the current access location of this object with an additional arbitrary information for debugging
purposes.
|
isLast, streamIdclone, equals, finalize, getClass, hashCode, notify, notifyAll, wait, wait, waitisLast, streamIdpublic DefaultSpdyDataFrame(int streamId)
streamId - the Stream-ID of this framepublic DefaultSpdyDataFrame(int streamId,
ByteBuf data)
streamId - the Stream-ID of this framedata - the payload of the frame. Can not exceed SpdyCodecUtil.SPDY_MAX_LENGTHpublic SpdyDataFrame setStreamId(int streamId)
SpdyStreamFramesetStreamId 在接口中 SpdyDataFramesetStreamId 在接口中 SpdyStreamFramesetStreamId 在类中 DefaultSpdyStreamFramepublic SpdyDataFrame setLast(boolean last)
SpdyStreamFramesetLast 在接口中 SpdyDataFramesetLast 在接口中 SpdyStreamFramesetLast 在类中 DefaultSpdyStreamFramepublic ByteBuf content()
SpdyDataFrameUnpooled.EMPTY_BUFFER is returned.
The data payload cannot exceed 16777215 bytes.content 在接口中 ByteBufHoldercontent 在接口中 SpdyDataFramepublic SpdyDataFrame copy()
ByteBufHolderByteBufHolder.copy 在接口中 ByteBufHoldercopy 在接口中 SpdyDataFramepublic SpdyDataFrame duplicate()
ByteBufHolderByteBufHolder. Be aware that this will not automatically call ByteBufHolder.retain().duplicate 在接口中 ByteBufHolderduplicate 在接口中 SpdyDataFramepublic SpdyDataFrame retainedDuplicate()
ByteBufHolderByteBufHolder. This method returns a retained duplicate unlike ByteBufHolder.duplicate().retainedDuplicate 在接口中 ByteBufHolderretainedDuplicate 在接口中 SpdyDataFrameByteBuf.retainedDuplicate()public SpdyDataFrame replace(ByteBuf content)
ByteBufHolderByteBufHolder which contains the specified content.replace 在接口中 ByteBufHolderreplace 在接口中 SpdyDataFramepublic int refCnt()
ReferenceCounted0, it means this object has been deallocated.refCnt 在接口中 ReferenceCountedpublic SpdyDataFrame retain()
ReferenceCounted1.retain 在接口中 ByteBufHolderretain 在接口中 SpdyDataFrameretain 在接口中 ReferenceCountedpublic SpdyDataFrame retain(int increment)
ReferenceCountedincrement.retain 在接口中 ByteBufHolderretain 在接口中 SpdyDataFrameretain 在接口中 ReferenceCountedpublic SpdyDataFrame touch()
ReferenceCountedResourceLeakDetector. This method is a shortcut to touch(null).touch 在接口中 ByteBufHoldertouch 在接口中 SpdyDataFrametouch 在接口中 ReferenceCountedpublic SpdyDataFrame touch(java.lang.Object hint)
ReferenceCountedResourceLeakDetector.touch 在接口中 ByteBufHoldertouch 在接口中 SpdyDataFrametouch 在接口中 ReferenceCountedpublic boolean release()
ReferenceCounted1 and deallocates this object if the reference count reaches at
0.release 在接口中 ReferenceCountedtrue if and only if the reference count became 0 and this object has been deallocatedpublic boolean release(int decrement)
ReferenceCounteddecrement and deallocates this object if the reference
count reaches at 0.release 在接口中 ReferenceCountedtrue if and only if the reference count became 0 and this object has been deallocatedpublic java.lang.String toString()
toString 在类中 java.lang.Object