@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, write
bind, close, connect, deregister, disconnect, flush, read
ensureNotSharable, exceptionCaught, handlerAdded, handlerRemoved, isSharable
public 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>
Exception
Copyright © 2008–2017 The Netty Project. All rights reserved.