com.github.netty.protocol.mysql.client.ClientCommandDecoder Maven / Gradle / Ivy
The newest version!
package com.github.netty.protocol.mysql.client;
import com.github.netty.protocol.mysql.*;
import io.netty.buffer.ByteBuf;
import io.netty.channel.ChannelHandlerContext;
import io.netty.handler.codec.DecoderException;
import java.util.List;
/**
*
*/
public class ClientCommandDecoder extends AbstractPacketDecoder implements ClientDecoder {
private Session session;
public ClientCommandDecoder(Session session, int maxPacketSize) {
super(maxPacketSize);
this.session = session;
}
@Override
protected void decodePacket(ChannelHandlerContext ctx, int sequenceId, ByteBuf packet, List