public interface LastStompContentSubframe extends StompContentSubframe
StompContentSubframe
which signals the end of the content batch
Note, even when no content is emitted by the protocol, an
empty LastStompContentSubframe
is issued to make the upstream parsing
easier.Modifier and Type | Field and Description |
---|---|
static LastStompContentSubframe |
EMPTY_LAST_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 . |
LastStompContentSubframe |
retain()
Increases the reference count by
1 . |
LastStompContentSubframe |
retain(int increment)
Increases the reference count by the specified
increment . |
LastStompContentSubframe |
retainedDuplicate()
Duplicates this
ByteBufHolder . |
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.
|
content
refCnt, release, release
decoderResult, setDecoderResult
static final LastStompContentSubframe EMPTY_LAST_CONTENT
LastStompContentSubframe copy()
ByteBufHolder
ByteBufHolder
.copy
in interface ByteBufHolder
copy
in interface StompContentSubframe
LastStompContentSubframe duplicate()
ByteBufHolder
ByteBufHolder
. Be aware that this will not automatically call ByteBufHolder.retain()
.duplicate
in interface ByteBufHolder
duplicate
in interface StompContentSubframe
LastStompContentSubframe retainedDuplicate()
ByteBufHolder
ByteBufHolder
. This method returns a retained duplicate unlike ByteBufHolder.duplicate()
.retainedDuplicate
in interface ByteBufHolder
retainedDuplicate
in interface StompContentSubframe
ByteBuf.retainedDuplicate()
LastStompContentSubframe replace(ByteBuf content)
ByteBufHolder
ByteBufHolder
which contains the specified content
.replace
in interface ByteBufHolder
replace
in interface StompContentSubframe
LastStompContentSubframe retain()
ReferenceCounted
1
.retain
in interface ByteBufHolder
retain
in interface ReferenceCounted
retain
in interface StompContentSubframe
LastStompContentSubframe retain(int increment)
ReferenceCounted
increment
.retain
in interface ByteBufHolder
retain
in interface ReferenceCounted
retain
in interface StompContentSubframe
LastStompContentSubframe touch()
ReferenceCounted
ResourceLeakDetector
. This method is a shortcut to touch(null)
.touch
in interface ByteBufHolder
touch
in interface ReferenceCounted
touch
in interface StompContentSubframe
LastStompContentSubframe touch(Object hint)
ReferenceCounted
ResourceLeakDetector
.touch
in interface ByteBufHolder
touch
in interface ReferenceCounted
touch
in interface StompContentSubframe
Copyright © 2008–2017 The Netty Project. All rights reserved.