public class DefaultLastStompContentSubframe extends DefaultStompContentSubframe implements LastStompContentSubframe
LastStompContentSubframe
.EMPTY_LAST_CONTENT
Constructor and Description |
---|
DefaultLastStompContentSubframe(ByteBuf content) |
Modifier and Type | Method and Description |
---|---|
LastStompContentSubframe |
copy()
Creates a deep copy of this
ByteBufHolder . |
LastStompContentSubframe |
duplicate()
Duplicates this
ByteBufHolder . |
LastStompContentSubframe |
replace(ByteBuf content)
Returns a new
ByteBufHolder which contains the specified content . |
DefaultLastStompContentSubframe |
retain()
Increases the reference count by
1 . |
LastStompContentSubframe |
retain(int increment)
Increases the reference count by the specified
increment . |
LastStompContentSubframe |
retainedDuplicate()
Duplicates this
ByteBufHolder . |
String |
toString() |
LastStompContentSubframe |
touch()
Records the current access location of this object for debugging purposes.
|
LastStompContentSubframe |
touch(Object hint)
Records the current access location of this object with an additional arbitrary information for debugging
purposes.
|
decoderResult, setDecoderResult
content, contentToString, equals, hashCode, refCnt, release, release
clone, finalize, getClass, notify, notifyAll, wait, wait, wait
content
refCnt, release, release
decoderResult, setDecoderResult
public DefaultLastStompContentSubframe(ByteBuf content)
public LastStompContentSubframe copy()
DefaultByteBufHolder
ByteBufHolder
.
This method calls replace(content().copy())
by default.
copy
in interface ByteBufHolder
copy
in interface LastStompContentSubframe
copy
in interface StompContentSubframe
copy
in class DefaultStompContentSubframe
public LastStompContentSubframe 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 interface LastStompContentSubframe
duplicate
in interface StompContentSubframe
duplicate
in class DefaultStompContentSubframe
public LastStompContentSubframe 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 interface LastStompContentSubframe
retainedDuplicate
in interface StompContentSubframe
retainedDuplicate
in class DefaultStompContentSubframe
ByteBuf.retainedDuplicate()
public LastStompContentSubframe 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 interface LastStompContentSubframe
replace
in interface StompContentSubframe
replace
in class DefaultStompContentSubframe
public DefaultLastStompContentSubframe retain()
ReferenceCounted
1
.retain
in interface ByteBufHolder
retain
in interface LastStompContentSubframe
retain
in interface StompContentSubframe
retain
in interface ReferenceCounted
retain
in class DefaultStompContentSubframe
public LastStompContentSubframe retain(int increment)
ReferenceCounted
increment
.retain
in interface ByteBufHolder
retain
in interface LastStompContentSubframe
retain
in interface StompContentSubframe
retain
in interface ReferenceCounted
retain
in class DefaultStompContentSubframe
public LastStompContentSubframe touch()
ReferenceCounted
ResourceLeakDetector
. This method is a shortcut to touch(null)
.touch
in interface ByteBufHolder
touch
in interface LastStompContentSubframe
touch
in interface StompContentSubframe
touch
in interface ReferenceCounted
touch
in class DefaultStompContentSubframe
public LastStompContentSubframe touch(Object hint)
ReferenceCounted
ResourceLeakDetector
.touch
in interface ByteBufHolder
touch
in interface LastStompContentSubframe
touch
in interface StompContentSubframe
touch
in interface ReferenceCounted
touch
in class DefaultStompContentSubframe
public String toString()
toString
in class DefaultStompContentSubframe
Copyright © 2008–2017 The Netty Project. All rights reserved.