@UnstableApi public interface BulkStringRedisContent extends RedisMessage, ByteBufHolder
RedisDecoder
generates BulkStringRedisContent
after
BulkStringHeaderRedisMessage
when the content is large or the encoding of the content is chunked.
If you prefer not to receive BulkStringRedisContent
in your handler,
place RedisBulkStringAggregator
after RedisDecoder
in the ChannelPipeline
.Modifier and Type | Method and Description |
---|---|
BulkStringRedisContent |
copy()
Creates a deep copy of this
ByteBufHolder . |
BulkStringRedisContent |
duplicate()
Duplicates this
ByteBufHolder . |
BulkStringRedisContent |
replace(ByteBuf content)
Returns a new
ByteBufHolder which contains the specified content . |
BulkStringRedisContent |
retain()
Increases the reference count by
1 . |
BulkStringRedisContent |
retain(int increment)
Increases the reference count by the specified
increment . |
BulkStringRedisContent |
retainedDuplicate()
Duplicates this
ByteBufHolder . |
BulkStringRedisContent |
touch()
Records the current access location of this object for debugging purposes.
|
BulkStringRedisContent |
touch(Object hint)
Records the current access location of this object with an additional arbitrary information for debugging
purposes.
|
content
refCnt, release, release
BulkStringRedisContent copy()
ByteBufHolder
ByteBufHolder
.copy
in interface ByteBufHolder
BulkStringRedisContent duplicate()
ByteBufHolder
ByteBufHolder
. Be aware that this will not automatically call ByteBufHolder.retain()
.duplicate
in interface ByteBufHolder
BulkStringRedisContent retainedDuplicate()
ByteBufHolder
ByteBufHolder
. This method returns a retained duplicate unlike ByteBufHolder.duplicate()
.retainedDuplicate
in interface ByteBufHolder
ByteBuf.retainedDuplicate()
BulkStringRedisContent replace(ByteBuf content)
ByteBufHolder
ByteBufHolder
which contains the specified content
.replace
in interface ByteBufHolder
BulkStringRedisContent retain()
ReferenceCounted
1
.retain
in interface ByteBufHolder
retain
in interface ReferenceCounted
BulkStringRedisContent retain(int increment)
ReferenceCounted
increment
.retain
in interface ByteBufHolder
retain
in interface ReferenceCounted
BulkStringRedisContent touch()
ReferenceCounted
ResourceLeakDetector
. This method is a shortcut to touch(null)
.touch
in interface ByteBufHolder
touch
in interface ReferenceCounted
BulkStringRedisContent touch(Object hint)
ReferenceCounted
ResourceLeakDetector
.touch
in interface ByteBufHolder
touch
in interface ReferenceCounted
Copyright © 2008–2024 The Netty Project. All rights reserved.