@UnstableApi public class RedisEncoder extends io.netty.handler.codec.MessageToMessageEncoder<RedisMessage>
RedisMessage into bytes following
RESP (REdis Serialization Protocol).| Constructor and Description |
|---|
RedisEncoder()
Creates a new instance with default
messagePool. |
RedisEncoder(RedisMessagePool messagePool)
Creates a new instance.
|
| Modifier and Type | Method and Description |
|---|---|
protected void |
encode(io.netty.channel.ChannelHandlerContext ctx,
RedisMessage msg,
List<Object> out) |
acceptOutboundMessage, writebind, close, connect, deregister, disconnect, flush, readensureNotSharable, exceptionCaught, handlerAdded, handlerRemoved, isSharablepublic RedisEncoder()
messagePool.public RedisEncoder(RedisMessagePool messagePool)
messagePool - the predefined message pool.protected void encode(io.netty.channel.ChannelHandlerContext ctx,
RedisMessage msg,
List<Object> out)
throws Exception
encode in class io.netty.handler.codec.MessageToMessageEncoder<RedisMessage>ExceptionCopyright © 2008–2025 The Netty Project. All rights reserved.