public interface SpdyDataFrame extends ByteBufHolder, SpdyStreamFrame
Modifier and Type | Method and Description |
---|---|
ByteBuf |
content()
Returns the data payload of this frame.
|
SpdyDataFrame |
copy()
Creates a deep copy of this
ByteBufHolder . |
SpdyDataFrame |
duplicate()
Duplicates this
ByteBufHolder . |
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.
|
SpdyDataFrame |
touch()
Records the current access location of this object for debugging purposes.
|
SpdyDataFrame |
touch(Object hint)
Records the current access location of this object with an additional arbitrary information for debugging
purposes.
|
refCnt, release, release
isLast, streamId
SpdyDataFrame setStreamId(int streamID)
SpdyStreamFrame
setStreamId
in interface SpdyStreamFrame
SpdyDataFrame setLast(boolean last)
SpdyStreamFrame
setLast
in interface SpdyStreamFrame
ByteBuf content()
Unpooled.EMPTY_BUFFER
is returned.
The data payload cannot exceed 16777215 bytes.content
in interface ByteBufHolder
SpdyDataFrame copy()
ByteBufHolder
ByteBufHolder
.copy
in interface ByteBufHolder
SpdyDataFrame duplicate()
ByteBufHolder
ByteBufHolder
. Be aware that this will not automatically call ByteBufHolder.retain()
.duplicate
in interface ByteBufHolder
SpdyDataFrame retainedDuplicate()
ByteBufHolder
ByteBufHolder
. This method returns a retained duplicate unlike ByteBufHolder.duplicate()
.retainedDuplicate
in interface ByteBufHolder
ByteBuf.retainedDuplicate()
SpdyDataFrame replace(ByteBuf content)
ByteBufHolder
ByteBufHolder
which contains the specified content
.replace
in interface ByteBufHolder
SpdyDataFrame retain()
ReferenceCounted
1
.retain
in interface ByteBufHolder
retain
in interface ReferenceCounted
SpdyDataFrame retain(int increment)
ReferenceCounted
increment
.retain
in interface ByteBufHolder
retain
in interface ReferenceCounted
SpdyDataFrame touch()
ReferenceCounted
ResourceLeakDetector
. This method is a shortcut to touch(null)
.touch
in interface ByteBufHolder
touch
in interface ReferenceCounted
SpdyDataFrame touch(Object hint)
ReferenceCounted
ResourceLeakDetector
.touch
in interface ByteBufHolder
touch
in interface ReferenceCounted
Copyright © 2008–2024 The Netty Project. All rights reserved.