public class DefaultStompFrame extends DefaultStompHeadersSubframe implements StompFrame
StompFrame.command, decoderResult, headersEMPTY_LAST_CONTENT| Constructor and Description |
|---|
DefaultStompFrame(StompCommand command) |
DefaultStompFrame(StompCommand command,
ByteBuf content) |
| Modifier and Type | Method and Description |
|---|---|
ByteBuf |
content()
Return the data which is held by this
ByteBufHolder. |
StompFrame |
copy()
Creates a deep copy of this
ByteBufHolder. |
StompFrame |
duplicate()
Duplicates this
ByteBufHolder. |
int |
refCnt()
Returns the reference count of this object.
|
boolean |
release()
Decreases the reference count by
1 and deallocates this object if the reference count reaches at
0. |
boolean |
release(int decrement)
Decreases the reference count by the specified
decrement and deallocates this object if the reference
count reaches at 0. |
StompFrame |
replace(ByteBuf content)
Returns a new
ByteBufHolder which contains the specified content. |
StompFrame |
retain()
Increases the reference count by
1. |
StompFrame |
retain(int increment)
Increases the reference count by the specified
increment. |
StompFrame |
retainedDuplicate()
Duplicates this
ByteBufHolder. |
String |
toString() |
StompFrame |
touch()
Records the current access location of this object for debugging purposes.
|
StompFrame |
touch(Object hint)
Records the current access location of this object with an additional arbitrary information for debugging
purposes.
|
command, decoderResult, headers, setDecoderResultclone, equals, finalize, getClass, hashCode, notify, notifyAll, wait, wait, waitcommand, headersdecoderResult, setDecoderResultpublic DefaultStompFrame(StompCommand command)
public DefaultStompFrame(StompCommand command, ByteBuf content)
public ByteBuf content()
ByteBufHolderByteBufHolder.content in interface ByteBufHolderpublic StompFrame copy()
ByteBufHolderByteBufHolder.copy in interface ByteBufHoldercopy in interface LastStompContentSubframecopy in interface StompContentSubframecopy in interface StompFramepublic StompFrame duplicate()
ByteBufHolderByteBufHolder. Be aware that this will not automatically call ByteBufHolder.retain().duplicate in interface ByteBufHolderduplicate in interface LastStompContentSubframeduplicate in interface StompContentSubframeduplicate in interface StompFramepublic StompFrame retainedDuplicate()
ByteBufHolderByteBufHolder. This method returns a retained duplicate unlike ByteBufHolder.duplicate().retainedDuplicate in interface ByteBufHolderretainedDuplicate in interface LastStompContentSubframeretainedDuplicate in interface StompContentSubframeretainedDuplicate in interface StompFrameByteBuf.retainedDuplicate()public StompFrame replace(ByteBuf content)
ByteBufHolderByteBufHolder which contains the specified content.replace in interface ByteBufHolderreplace in interface LastStompContentSubframereplace in interface StompContentSubframereplace in interface StompFramepublic int refCnt()
ReferenceCounted0, it means this object has been deallocated.refCnt in interface ReferenceCountedpublic StompFrame retain()
ReferenceCounted1.retain in interface ByteBufHolderretain in interface LastStompContentSubframeretain in interface StompContentSubframeretain in interface StompFrameretain in interface ReferenceCountedpublic StompFrame retain(int increment)
ReferenceCountedincrement.retain in interface ByteBufHolderretain in interface LastStompContentSubframeretain in interface StompContentSubframeretain in interface StompFrameretain in interface ReferenceCountedpublic StompFrame touch()
ReferenceCountedResourceLeakDetector. This method is a shortcut to touch(null).touch in interface ByteBufHoldertouch in interface LastStompContentSubframetouch in interface StompContentSubframetouch in interface StompFrametouch in interface ReferenceCountedpublic StompFrame touch(Object hint)
ReferenceCountedResourceLeakDetector.touch in interface ByteBufHoldertouch in interface LastStompContentSubframetouch in interface StompContentSubframetouch in interface StompFrametouch in interface ReferenceCountedpublic boolean release()
ReferenceCounted1 and deallocates this object if the reference count reaches at
0.release in interface ReferenceCountedtrue if and only if the reference count became 0 and this object has been deallocatedpublic boolean release(int decrement)
ReferenceCounteddecrement and deallocates this object if the reference
count reaches at 0.release in interface ReferenceCountedtrue if and only if the reference count became 0 and this object has been deallocatedpublic String toString()
toString in class DefaultStompHeadersSubframeCopyright © 2008–2017 The Netty Project. All rights reserved.