Package io.netty.handler.codec.stomp
Class DefaultStompContentSubframe
- java.lang.Object
-
- io.netty.buffer.DefaultByteBufHolder
-
- io.netty.handler.codec.stomp.DefaultStompContentSubframe
-
- All Implemented Interfaces:
ByteBufHolder,DecoderResultProvider,StompContentSubframe,StompSubframe,ReferenceCounted
- Direct Known Subclasses:
DefaultLastStompContentSubframe
public class DefaultStompContentSubframe extends DefaultByteBufHolder implements StompContentSubframe
The defaultStompContentSubframeimplementation.
-
-
Constructor Summary
Constructors Constructor Description DefaultStompContentSubframe(ByteBuf content)
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description StompContentSubframecopy()Creates a deep copy of thisByteBufHolder.DecoderResultdecoderResult()Returns the result of decoding this object.StompContentSubframeduplicate()Duplicates thisByteBufHolder.StompContentSubframereplace(ByteBuf content)Returns a newByteBufHolderwhich contains the specifiedcontent.StompContentSubframeretain()Increases the reference count by1.StompContentSubframeretain(int increment)Increases the reference count by the specifiedincrement.StompContentSubframeretainedDuplicate()Duplicates thisByteBufHolder.voidsetDecoderResult(DecoderResult decoderResult)Updates the result of decoding this object.java.lang.StringtoString()StompContentSubframetouch()Records the current access location of this object for debugging purposes.StompContentSubframetouch(java.lang.Object hint)Records the current access location of this object with an additional arbitrary information for debugging purposes.-
Methods inherited from class io.netty.buffer.DefaultByteBufHolder
content, contentToString, equals, hashCode, refCnt, release, release
-
Methods inherited from class java.lang.Object
clone, finalize, getClass, notify, notifyAll, wait, wait, wait
-
Methods inherited from interface io.netty.buffer.ByteBufHolder
content
-
Methods inherited from interface io.netty.util.ReferenceCounted
refCnt, release, release
-
-
-
-
Constructor Detail
-
DefaultStompContentSubframe
public DefaultStompContentSubframe(ByteBuf content)
-
-
Method Detail
-
copy
public StompContentSubframe copy()
Description copied from class:DefaultByteBufHolderCreates a deep copy of thisByteBufHolder.This method calls
replace(content().copy())by default.- Specified by:
copyin interfaceByteBufHolder- Specified by:
copyin interfaceStompContentSubframe- Overrides:
copyin classDefaultByteBufHolder
-
duplicate
public StompContentSubframe duplicate()
Description copied from class:DefaultByteBufHolderDuplicates thisByteBufHolder. Be aware that this will not automatically callByteBufHolder.retain().This method calls
replace(content().duplicate())by default.- Specified by:
duplicatein interfaceByteBufHolder- Specified by:
duplicatein interfaceStompContentSubframe- Overrides:
duplicatein classDefaultByteBufHolder
-
retainedDuplicate
public StompContentSubframe retainedDuplicate()
Description copied from class:DefaultByteBufHolderDuplicates thisByteBufHolder. This method returns a retained duplicate unlikeByteBufHolder.duplicate().This method calls
replace(content().retainedDuplicate())by default.- Specified by:
retainedDuplicatein interfaceByteBufHolder- Specified by:
retainedDuplicatein interfaceStompContentSubframe- Overrides:
retainedDuplicatein classDefaultByteBufHolder- See Also:
ByteBuf.retainedDuplicate()
-
replace
public StompContentSubframe replace(ByteBuf content)
Description copied from class:DefaultByteBufHolderReturns a newByteBufHolderwhich contains the specifiedcontent.Override this method to return a new instance of this object whose content is set to the specified
content. The default implementation ofDefaultByteBufHolder.copy(),DefaultByteBufHolder.duplicate()andDefaultByteBufHolder.retainedDuplicate()invokes this method to create a copy.- Specified by:
replacein interfaceByteBufHolder- Specified by:
replacein interfaceStompContentSubframe- Overrides:
replacein classDefaultByteBufHolder
-
retain
public StompContentSubframe retain()
Description copied from interface:ReferenceCountedIncreases the reference count by1.- Specified by:
retainin interfaceByteBufHolder- Specified by:
retainin interfaceReferenceCounted- Specified by:
retainin interfaceStompContentSubframe- Overrides:
retainin classDefaultByteBufHolder
-
retain
public StompContentSubframe retain(int increment)
Description copied from interface:ReferenceCountedIncreases the reference count by the specifiedincrement.- Specified by:
retainin interfaceByteBufHolder- Specified by:
retainin interfaceReferenceCounted- Specified by:
retainin interfaceStompContentSubframe- Overrides:
retainin classDefaultByteBufHolder
-
touch
public StompContentSubframe touch()
Description copied from interface:ReferenceCountedRecords the current access location of this object for debugging purposes. If this object is determined to be leaked, the information recorded by this operation will be provided to you viaResourceLeakDetector. This method is a shortcut totouch(null).- Specified by:
touchin interfaceByteBufHolder- Specified by:
touchin interfaceReferenceCounted- Specified by:
touchin interfaceStompContentSubframe- Overrides:
touchin classDefaultByteBufHolder
-
touch
public StompContentSubframe touch(java.lang.Object hint)
Description copied from interface:ReferenceCountedRecords the current access location of this object with an additional arbitrary information for debugging purposes. If this object is determined to be leaked, the information recorded by this operation will be provided to you viaResourceLeakDetector.- Specified by:
touchin interfaceByteBufHolder- Specified by:
touchin interfaceReferenceCounted- Specified by:
touchin interfaceStompContentSubframe- Overrides:
touchin classDefaultByteBufHolder
-
decoderResult
public DecoderResult decoderResult()
Description copied from interface:DecoderResultProviderReturns the result of decoding this object.- Specified by:
decoderResultin interfaceDecoderResultProvider
-
setDecoderResult
public void setDecoderResult(DecoderResult decoderResult)
Description copied from interface:DecoderResultProviderUpdates the result of decoding this object. This method is supposed to be invoked by a decoder. Do not call this method unless you know what you are doing.- Specified by:
setDecoderResultin interfaceDecoderResultProvider
-
toString
public java.lang.String toString()
- Overrides:
toStringin classDefaultByteBufHolder
-
-