@UnstableApi public class DefaultHttp2PingFrame extends DefaultByteBufHolder implements Http2PingFrame
Http2PingFrame
implementation.Constructor and Description |
---|
DefaultHttp2PingFrame(ByteBuf content) |
Modifier and Type | Method and Description |
---|---|
boolean |
ack()
When
true , indicates that this ping is a ping response. |
DefaultHttp2PingFrame |
copy()
Creates a deep copy of this
ByteBufHolder . |
DefaultHttp2PingFrame |
duplicate()
Duplicates this
ByteBufHolder . |
boolean |
equals(Object o) |
int |
hashCode() |
String |
name()
Returns the name of the HTTP/2 frame e.g.
|
DefaultHttp2PingFrame |
replace(ByteBuf content)
Returns a new
ByteBufHolder which contains the specified content . |
DefaultHttp2PingFrame |
retain()
Increases the reference count by
1 . |
DefaultHttp2PingFrame |
retain(int increment)
Increases the reference count by the specified
increment . |
DefaultHttp2PingFrame |
retainedDuplicate()
Duplicates this
ByteBufHolder . |
String |
toString() |
DefaultHttp2PingFrame |
touch()
Records the current access location of this object for debugging purposes.
|
DefaultHttp2PingFrame |
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 DefaultHttp2PingFrame(ByteBuf content)
public boolean ack()
Http2PingFrame
true
, indicates that this ping is a ping response.ack
in interface Http2PingFrame
public String name()
Http2Frame
name
in interface Http2Frame
public DefaultHttp2PingFrame copy()
DefaultByteBufHolder
ByteBufHolder
.
This method calls replace(content().copy())
by default.
copy
in interface ByteBufHolder
copy
in class DefaultByteBufHolder
public DefaultHttp2PingFrame 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 class DefaultByteBufHolder
public DefaultHttp2PingFrame 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 class DefaultByteBufHolder
ByteBuf.retainedDuplicate()
public DefaultHttp2PingFrame 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 class DefaultByteBufHolder
public DefaultHttp2PingFrame retain()
ReferenceCounted
1
.retain
in interface ByteBufHolder
retain
in interface ReferenceCounted
retain
in class DefaultByteBufHolder
public DefaultHttp2PingFrame retain(int increment)
ReferenceCounted
increment
.retain
in interface ByteBufHolder
retain
in interface ReferenceCounted
retain
in class DefaultByteBufHolder
public DefaultHttp2PingFrame touch()
ReferenceCounted
ResourceLeakDetector
. This method is a shortcut to touch(null)
.touch
in interface ByteBufHolder
touch
in interface ReferenceCounted
touch
in class DefaultByteBufHolder
public DefaultHttp2PingFrame touch(Object hint)
ReferenceCounted
ResourceLeakDetector
.touch
in interface ByteBufHolder
touch
in interface ReferenceCounted
touch
in class DefaultByteBufHolder
public boolean equals(Object o)
equals
in class DefaultByteBufHolder
public int hashCode()
hashCode
in class DefaultByteBufHolder
public String toString()
toString
in class DefaultByteBufHolder
Copyright © 2008–2017 The Netty Project. All rights reserved.