@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, releaseclone, finalize, getClass, notify, notifyAll, wait, wait, waitcontentrefCnt, release, releasepublic DefaultHttp2PingFrame(ByteBuf content)
public boolean ack()
Http2PingFrametrue, indicates that this ping is a ping response.ack in interface Http2PingFramepublic String name()
Http2Framename in interface Http2Framepublic DefaultHttp2PingFrame copy()
DefaultByteBufHolderByteBufHolder.
This method calls replace(content().copy()) by default.
copy in interface ByteBufHoldercopy in class DefaultByteBufHolderpublic DefaultHttp2PingFrame duplicate()
DefaultByteBufHolderByteBufHolder. Be aware that this will not automatically call ByteBufHolder.retain().
This method calls replace(content().duplicate()) by default.
duplicate in interface ByteBufHolderduplicate in class DefaultByteBufHolderpublic DefaultHttp2PingFrame retainedDuplicate()
DefaultByteBufHolderByteBufHolder. This method returns a retained duplicate unlike ByteBufHolder.duplicate().
This method calls replace(content().retainedDuplicate()) by default.
retainedDuplicate in interface ByteBufHolderretainedDuplicate in class DefaultByteBufHolderByteBuf.retainedDuplicate()public DefaultHttp2PingFrame replace(ByteBuf content)
DefaultByteBufHolderByteBufHolder 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 ByteBufHolderreplace in class DefaultByteBufHolderpublic DefaultHttp2PingFrame retain()
ReferenceCounted1.retain in interface ByteBufHolderretain in interface ReferenceCountedretain in class DefaultByteBufHolderpublic DefaultHttp2PingFrame retain(int increment)
ReferenceCountedincrement.retain in interface ByteBufHolderretain in interface ReferenceCountedretain in class DefaultByteBufHolderpublic DefaultHttp2PingFrame touch()
ReferenceCountedResourceLeakDetector. This method is a shortcut to touch(null).touch in interface ByteBufHoldertouch in interface ReferenceCountedtouch in class DefaultByteBufHolderpublic DefaultHttp2PingFrame touch(Object hint)
ReferenceCountedResourceLeakDetector.touch in interface ByteBufHoldertouch in interface ReferenceCountedtouch in class DefaultByteBufHolderpublic boolean equals(Object o)
equals in class DefaultByteBufHolderpublic int hashCode()
hashCode in class DefaultByteBufHolderpublic String toString()
toString in class DefaultByteBufHolderCopyright © 2008–2017 The Netty Project. All rights reserved.