@UnstableApi public interface Http2DataFrame extends Http2StreamFrame, ByteBufHolder
Modifier and Type | Method and Description |
---|---|
ByteBuf |
content()
Payload of DATA frame.
|
Http2DataFrame |
copy()
Creates a deep copy of this
ByteBufHolder . |
Http2DataFrame |
duplicate()
Duplicates this
ByteBufHolder . |
boolean |
isEndStream()
true if this frame is the last one in this direction of the stream. |
int |
padding()
Frame padding to use.
|
Http2DataFrame |
replace(ByteBuf content)
Returns a new
ByteBufHolder which contains the specified content . |
Http2DataFrame |
retain()
Increases the reference count by
1 . |
Http2DataFrame |
retain(int increment)
Increases the reference count by the specified
increment . |
Http2DataFrame |
retainedDuplicate()
Duplicates this
ByteBufHolder . |
Http2DataFrame |
touch()
Records the current access location of this object for debugging purposes.
|
Http2DataFrame |
touch(Object hint)
Records the current access location of this object with an additional arbitrary information for debugging
purposes.
|
streamId, streamId
name
refCnt, release, release
boolean isEndStream()
true
if this frame is the last one in this direction of the stream.int padding()
ByteBuf content()
null
.content
in interface ByteBufHolder
Http2DataFrame copy()
ByteBufHolder
ByteBufHolder
.copy
in interface ByteBufHolder
Http2DataFrame duplicate()
ByteBufHolder
ByteBufHolder
. Be aware that this will not automatically call ByteBufHolder.retain()
.duplicate
in interface ByteBufHolder
Http2DataFrame retainedDuplicate()
ByteBufHolder
ByteBufHolder
. This method returns a retained duplicate unlike ByteBufHolder.duplicate()
.retainedDuplicate
in interface ByteBufHolder
ByteBuf.retainedDuplicate()
Http2DataFrame replace(ByteBuf content)
ByteBufHolder
ByteBufHolder
which contains the specified content
.replace
in interface ByteBufHolder
Http2DataFrame retain()
ReferenceCounted
1
.retain
in interface ByteBufHolder
retain
in interface ReferenceCounted
Http2DataFrame retain(int increment)
ReferenceCounted
increment
.retain
in interface ByteBufHolder
retain
in interface ReferenceCounted
Http2DataFrame touch()
ReferenceCounted
ResourceLeakDetector
. This method is a shortcut to touch(null)
.touch
in interface ByteBufHolder
touch
in interface ReferenceCounted
Http2DataFrame touch(Object hint)
ReferenceCounted
ResourceLeakDetector
.touch
in interface ByteBufHolder
touch
in interface ReferenceCounted
Copyright © 2008–2017 The Netty Project. All rights reserved.