com.github.tonivade.resp.protocol.RedisDecoder Maven / Gradle / Ivy
/*
* Copyright (c) 2015-2017, Antonio Gabriel Muñoz Conejo
* Distributed under the terms of the MIT License
*/
package com.github.tonivade.resp.protocol;
import java.util.List;
import io.netty.buffer.ByteBuf;
import io.netty.buffer.ByteBufProcessor;
import io.netty.channel.ChannelHandlerContext;
import io.netty.handler.codec.ReplayingDecoder;
public class RedisDecoder extends ReplayingDecoder {
private final int maxLength;
public RedisDecoder(int maxLength) {
this.maxLength = maxLength;
}
@Override
protected void decode(ChannelHandlerContext ctx, ByteBuf buffer, List © 2015 - 2025 Weber Informatics LLC | Privacy Policy