public final class DefaultSpdyUnknownFrame extends DefaultByteBufHolder implements SpdyUnknownFrame
Constructor and Description |
---|
DefaultSpdyUnknownFrame(int frameType,
byte flags,
ByteBuf data) |
Modifier and Type | Method and Description |
---|---|
DefaultSpdyUnknownFrame |
copy()
Creates a deep copy of this
ByteBufHolder . |
DefaultSpdyUnknownFrame |
duplicate()
Duplicates this
ByteBufHolder . |
boolean |
equals(Object o)
This implementation of the
equals operation is restricted to
work only with instances of the same class. |
byte |
flags() |
int |
frameType() |
int |
hashCode() |
DefaultSpdyUnknownFrame |
replace(ByteBuf content)
Returns a new
ByteBufHolder which contains the specified content . |
DefaultSpdyUnknownFrame |
retain()
Increases the reference count by
1 . |
DefaultSpdyUnknownFrame |
retain(int increment)
Increases the reference count by the specified
increment . |
DefaultSpdyUnknownFrame |
retainedDuplicate()
Duplicates this
ByteBufHolder . |
String |
toString() |
DefaultSpdyUnknownFrame |
touch()
Records the current access location of this object for debugging purposes.
|
DefaultSpdyUnknownFrame |
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 DefaultSpdyUnknownFrame(int frameType, byte flags, ByteBuf data)
public int frameType()
frameType
in interface SpdyUnknownFrame
public byte flags()
flags
in interface SpdyUnknownFrame
public DefaultSpdyUnknownFrame copy()
DefaultByteBufHolder
ByteBufHolder
.
This method calls replace(content().copy())
by default.
copy
in interface ByteBufHolder
copy
in interface SpdyUnknownFrame
copy
in class DefaultByteBufHolder
public DefaultSpdyUnknownFrame 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 SpdyUnknownFrame
duplicate
in class DefaultByteBufHolder
public DefaultSpdyUnknownFrame 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 SpdyUnknownFrame
retainedDuplicate
in class DefaultByteBufHolder
ByteBuf.retainedDuplicate()
public DefaultSpdyUnknownFrame 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 SpdyUnknownFrame
replace
in class DefaultByteBufHolder
public DefaultSpdyUnknownFrame retain()
ReferenceCounted
1
.retain
in interface ByteBufHolder
retain
in interface SpdyUnknownFrame
retain
in interface ReferenceCounted
retain
in class DefaultByteBufHolder
public DefaultSpdyUnknownFrame retain(int increment)
ReferenceCounted
increment
.retain
in interface ByteBufHolder
retain
in interface SpdyUnknownFrame
retain
in interface ReferenceCounted
retain
in class DefaultByteBufHolder
public DefaultSpdyUnknownFrame touch()
ReferenceCounted
ResourceLeakDetector
. This method is a shortcut to touch(null)
.touch
in interface ByteBufHolder
touch
in interface SpdyUnknownFrame
touch
in interface ReferenceCounted
touch
in class DefaultByteBufHolder
public DefaultSpdyUnknownFrame touch(Object hint)
ReferenceCounted
ResourceLeakDetector
.touch
in interface ByteBufHolder
touch
in interface SpdyUnknownFrame
touch
in interface ReferenceCounted
touch
in class DefaultByteBufHolder
public boolean equals(Object o)
DefaultByteBufHolder
equals
operation is restricted to
work only with instances of the same class. The reason for that is that
Netty library already has a number of classes that extend DefaultByteBufHolder
and
override equals
method with an additional comparison logic and we
need the symmetric property of the equals
operation to be preserved.equals
in class DefaultByteBufHolder
o
- the reference object with which to compare.true
if this object is the same as the obj
argument; false
otherwise.public int hashCode()
hashCode
in class DefaultByteBufHolder
public String toString()
toString
in class DefaultByteBufHolder
Copyright © 2008–2024 The Netty Project. All rights reserved.