public class DefaultStompContentSubframe extends DefaultByteBufHolder implements StompContentSubframe
StompContentSubframe
implementation.构造器和说明 |
---|
DefaultStompContentSubframe(ByteBuf content) |
限定符和类型 | 方法和说明 |
---|---|
StompContentSubframe |
copy()
Creates a deep copy of this
ByteBufHolder . |
DecoderResult |
decoderResult()
Returns the result of decoding this object.
|
StompContentSubframe |
duplicate()
Duplicates this
ByteBufHolder . |
StompContentSubframe |
replace(ByteBuf content)
Returns a new
ByteBufHolder which contains the specified content . |
StompContentSubframe |
retain()
Increases the reference count by
1 . |
StompContentSubframe |
retain(int increment)
Increases the reference count by the specified
increment . |
StompContentSubframe |
retainedDuplicate()
Duplicates this
ByteBufHolder . |
void |
setDecoderResult(DecoderResult decoderResult)
Updates the result of decoding this object.
|
java.lang.String |
toString() |
StompContentSubframe |
touch()
Records the current access location of this object for debugging purposes.
|
StompContentSubframe |
touch(java.lang.Object hint)
Records the current access location of this object with an additional arbitrary information for debugging
purposes.
|
content, contentToString, equals, hashCode, refCnt, release, release
content
refCnt, release, release
public DefaultStompContentSubframe(ByteBuf content)
public StompContentSubframe copy()
DefaultByteBufHolder
ByteBufHolder
.
This method calls replace(content().copy())
by default.
copy
在接口中 ByteBufHolder
copy
在接口中 StompContentSubframe
copy
在类中 DefaultByteBufHolder
public StompContentSubframe duplicate()
DefaultByteBufHolder
ByteBufHolder
. Be aware that this will not automatically call ByteBufHolder.retain()
.
This method calls replace(content().duplicate())
by default.
duplicate
在接口中 ByteBufHolder
duplicate
在接口中 StompContentSubframe
duplicate
在类中 DefaultByteBufHolder
public StompContentSubframe retainedDuplicate()
DefaultByteBufHolder
ByteBufHolder
. This method returns a retained duplicate unlike ByteBufHolder.duplicate()
.
This method calls replace(content().retainedDuplicate())
by default.
retainedDuplicate
在接口中 ByteBufHolder
retainedDuplicate
在接口中 StompContentSubframe
retainedDuplicate
在类中 DefaultByteBufHolder
ByteBuf.retainedDuplicate()
public StompContentSubframe 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
在接口中 ByteBufHolder
replace
在接口中 StompContentSubframe
replace
在类中 DefaultByteBufHolder
public StompContentSubframe retain()
ReferenceCounted
1
.retain
在接口中 ByteBufHolder
retain
在接口中 StompContentSubframe
retain
在接口中 ReferenceCounted
retain
在类中 DefaultByteBufHolder
public StompContentSubframe retain(int increment)
ReferenceCounted
increment
.retain
在接口中 ByteBufHolder
retain
在接口中 StompContentSubframe
retain
在接口中 ReferenceCounted
retain
在类中 DefaultByteBufHolder
public StompContentSubframe touch()
ReferenceCounted
ResourceLeakDetector
. This method is a shortcut to touch(null)
.touch
在接口中 ByteBufHolder
touch
在接口中 StompContentSubframe
touch
在接口中 ReferenceCounted
touch
在类中 DefaultByteBufHolder
public StompContentSubframe touch(java.lang.Object hint)
ReferenceCounted
ResourceLeakDetector
.touch
在接口中 ByteBufHolder
touch
在接口中 StompContentSubframe
touch
在接口中 ReferenceCounted
touch
在类中 DefaultByteBufHolder
public DecoderResult decoderResult()
DecoderResultProvider
decoderResult
在接口中 DecoderResultProvider
public void setDecoderResult(DecoderResult decoderResult)
DecoderResultProvider
setDecoderResult
在接口中 DecoderResultProvider
public java.lang.String toString()
toString
在类中 DefaultByteBufHolder