public class DefaultSpdyDataFrame extends DefaultSpdyStreamFrame implements SpdyDataFrame
SpdyDataFrame
implementation.Constructor and Description |
---|
DefaultSpdyDataFrame(int streamId)
Creates a new instance.
|
DefaultSpdyDataFrame(int streamId,
io.netty.buffer.ByteBuf data)
Creates a new instance.
|
Modifier and Type | Method and Description |
---|---|
io.netty.buffer.ByteBuf |
content()
Returns the data payload of this frame.
|
SpdyDataFrame |
copy() |
SpdyDataFrame |
duplicate() |
int |
refCnt() |
boolean |
release() |
boolean |
release(int decrement) |
SpdyDataFrame |
replace(io.netty.buffer.ByteBuf content) |
SpdyDataFrame |
retain() |
SpdyDataFrame |
retain(int increment) |
SpdyDataFrame |
retainedDuplicate() |
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.
|
String |
toString() |
SpdyDataFrame |
touch() |
SpdyDataFrame |
touch(Object hint) |
isLast, streamId
clone, equals, finalize, getClass, hashCode, notify, notifyAll, wait, wait, wait
isLast, streamId
public DefaultSpdyDataFrame(int streamId)
streamId
- the Stream-ID of this framepublic DefaultSpdyDataFrame(int streamId, io.netty.buffer.ByteBuf data)
streamId
- the Stream-ID of this framedata
- the payload of the frame. Can not exceed SpdyCodecUtil.SPDY_MAX_LENGTH
public SpdyDataFrame setStreamId(int streamId)
SpdyStreamFrame
setStreamId
in interface SpdyDataFrame
setStreamId
in interface SpdyStreamFrame
setStreamId
in class DefaultSpdyStreamFrame
public SpdyDataFrame setLast(boolean last)
SpdyStreamFrame
setLast
in interface SpdyDataFrame
setLast
in interface SpdyStreamFrame
setLast
in class DefaultSpdyStreamFrame
public io.netty.buffer.ByteBuf content()
SpdyDataFrame
Unpooled.EMPTY_BUFFER
is returned.
The data payload cannot exceed 16777215 bytes.content
in interface io.netty.buffer.ByteBufHolder
content
in interface SpdyDataFrame
public SpdyDataFrame copy()
copy
in interface io.netty.buffer.ByteBufHolder
copy
in interface SpdyDataFrame
public SpdyDataFrame duplicate()
duplicate
in interface io.netty.buffer.ByteBufHolder
duplicate
in interface SpdyDataFrame
public SpdyDataFrame retainedDuplicate()
retainedDuplicate
in interface io.netty.buffer.ByteBufHolder
retainedDuplicate
in interface SpdyDataFrame
public SpdyDataFrame replace(io.netty.buffer.ByteBuf content)
replace
in interface io.netty.buffer.ByteBufHolder
replace
in interface SpdyDataFrame
public int refCnt()
refCnt
in interface io.netty.util.ReferenceCounted
public SpdyDataFrame retain()
retain
in interface io.netty.buffer.ByteBufHolder
retain
in interface SpdyDataFrame
retain
in interface io.netty.util.ReferenceCounted
public SpdyDataFrame retain(int increment)
retain
in interface io.netty.buffer.ByteBufHolder
retain
in interface SpdyDataFrame
retain
in interface io.netty.util.ReferenceCounted
public SpdyDataFrame touch()
touch
in interface io.netty.buffer.ByteBufHolder
touch
in interface SpdyDataFrame
touch
in interface io.netty.util.ReferenceCounted
public SpdyDataFrame touch(Object hint)
touch
in interface io.netty.buffer.ByteBufHolder
touch
in interface SpdyDataFrame
touch
in interface io.netty.util.ReferenceCounted
public boolean release()
release
in interface io.netty.util.ReferenceCounted
public boolean release(int decrement)
release
in interface io.netty.util.ReferenceCounted
Copyright © 2008–2023 The Netty Project. All rights reserved.