
redis.server.netty.RedisReplyEncoder Maven / Gradle / Ivy
package redis.server.netty;
import io.netty.buffer.ByteBuf;
import io.netty.channel.ChannelHandlerContext;
import io.netty.handler.codec.MessageToByteEncoder;
import redis.netty4.Reply;
/**
* Write a reply.
*/
public class RedisReplyEncoder extends MessageToByteEncoder {
@Override
public void encode(ChannelHandlerContext ctx, Reply msg, ByteBuf out) throws Exception {
msg.write(out);
}
}
© 2015 - 2025 Weber Informatics LLC | Privacy Policy