@UnstableApi public final class DefaultHttp2UnknownFrame extends DefaultByteBufHolder implements Http2UnknownFrame
Constructor and Description |
---|
DefaultHttp2UnknownFrame(byte frameType,
Http2Flags flags) |
DefaultHttp2UnknownFrame(byte frameType,
Http2Flags flags,
ByteBuf data) |
Modifier and Type | Method and Description |
---|---|
DefaultHttp2UnknownFrame |
copy()
Creates a deep copy of this
ByteBufHolder . |
DefaultHttp2UnknownFrame |
duplicate()
Duplicates this
ByteBufHolder . |
boolean |
equals(Object o) |
Http2Flags |
flags() |
byte |
frameType() |
int |
hashCode() |
String |
name()
Returns the name of the HTTP/2 frame e.g.
|
DefaultHttp2UnknownFrame |
replace(ByteBuf content)
Returns a new
ByteBufHolder which contains the specified content . |
DefaultHttp2UnknownFrame |
retain()
Increases the reference count by
1 . |
DefaultHttp2UnknownFrame |
retain(int increment)
Increases the reference count by the specified
increment . |
DefaultHttp2UnknownFrame |
retainedDuplicate()
Duplicates this
ByteBufHolder . |
Http2FrameStream |
stream() |
DefaultHttp2UnknownFrame |
stream(Http2FrameStream stream)
Set the
Http2FrameStream object for this frame. |
String |
toString() |
DefaultHttp2UnknownFrame |
touch()
Records the current access location of this object for debugging purposes.
|
DefaultHttp2UnknownFrame |
touch(Object hint)
Records the current access location of this object with an additional arbitrary information for debugging
purposes.
|
content, contentToString, refCnt, release, release
clone, finalize, getClass, notify, notifyAll, wait, wait, wait
content
refCnt, release, release
public DefaultHttp2UnknownFrame(byte frameType, Http2Flags flags)
public DefaultHttp2UnknownFrame(byte frameType, Http2Flags flags, ByteBuf data)
public Http2FrameStream stream()
stream
in interface Http2UnknownFrame
public DefaultHttp2UnknownFrame stream(Http2FrameStream stream)
Http2UnknownFrame
Http2FrameStream
object for this frame.stream
in interface Http2UnknownFrame
public byte frameType()
frameType
in interface Http2UnknownFrame
public Http2Flags flags()
flags
in interface Http2UnknownFrame
public String name()
Http2Frame
name
in interface Http2Frame
public DefaultHttp2UnknownFrame copy()
DefaultByteBufHolder
ByteBufHolder
.
This method calls replace(content().copy())
by default.
copy
in interface ByteBufHolder
copy
in interface Http2UnknownFrame
copy
in class DefaultByteBufHolder
public DefaultHttp2UnknownFrame duplicate()
DefaultByteBufHolder
ByteBufHolder
. Be aware that this will not automatically call ByteBufHolder.retain()
.
This method calls replace(content().duplicate())
by default.
duplicate
in interface ByteBufHolder
duplicate
in interface Http2UnknownFrame
duplicate
in class DefaultByteBufHolder
public DefaultHttp2UnknownFrame retainedDuplicate()
DefaultByteBufHolder
ByteBufHolder
. This method returns a retained duplicate unlike ByteBufHolder.duplicate()
.
This method calls replace(content().retainedDuplicate())
by default.
retainedDuplicate
in interface ByteBufHolder
retainedDuplicate
in interface Http2UnknownFrame
retainedDuplicate
in class DefaultByteBufHolder
ByteBuf.retainedDuplicate()
public DefaultHttp2UnknownFrame replace(ByteBuf content)
DefaultByteBufHolder
ByteBufHolder
which contains the specified content
.
Override this method to return a new instance of this object whose content is set to the specified
content
. The default implementation of DefaultByteBufHolder.copy()
, DefaultByteBufHolder.duplicate()
and
DefaultByteBufHolder.retainedDuplicate()
invokes this method to create a copy.
replace
in interface ByteBufHolder
replace
in interface Http2UnknownFrame
replace
in class DefaultByteBufHolder
public DefaultHttp2UnknownFrame retain()
ReferenceCounted
1
.retain
in interface ByteBufHolder
retain
in interface Http2UnknownFrame
retain
in interface ReferenceCounted
retain
in class DefaultByteBufHolder
public DefaultHttp2UnknownFrame retain(int increment)
ReferenceCounted
increment
.retain
in interface ByteBufHolder
retain
in interface Http2UnknownFrame
retain
in interface ReferenceCounted
retain
in class DefaultByteBufHolder
public String toString()
toString
in class DefaultByteBufHolder
public DefaultHttp2UnknownFrame touch()
ReferenceCounted
ResourceLeakDetector
. This method is a shortcut to touch(null)
.touch
in interface ByteBufHolder
touch
in interface Http2UnknownFrame
touch
in interface ReferenceCounted
touch
in class DefaultByteBufHolder
public DefaultHttp2UnknownFrame touch(Object hint)
ReferenceCounted
ResourceLeakDetector
.touch
in interface ByteBufHolder
touch
in interface Http2UnknownFrame
touch
in interface ReferenceCounted
touch
in class DefaultByteBufHolder
public boolean equals(Object o)
equals
in class DefaultByteBufHolder
public int hashCode()
hashCode
in class DefaultByteBufHolder
Copyright © 2008–2018 The Netty Project. All rights reserved.