All Downloads are FREE. Search and download functionalities are using the official Maven repository.

com.tydic.mysql.AsyncChannelInboundHandler Maven / Gradle / Ivy

There is a newer version: 1.7
Show newest version
package com.tydic.mysql;

import io.netty.buffer.ByteBuf;
import io.netty.channel.ChannelHandlerContext;
import io.netty.channel.ChannelInboundHandlerAdapter;

/**
 * Created by shihailong on 2017/9/21.
 */
public class AsyncChannelInboundHandler extends ChannelInboundHandlerAdapter {
    private volatile ByteBuf byteBuf;
    @Override
    public void channelRead(ChannelHandlerContext ctx, Object msg) throws Exception {
        if(msg instanceof ByteBuf){
            if(byteBuf == null){
                byteBuf = (ByteBuf) msg;
            }
        }
    }
}




© 2015 - 2024 Weber Informatics LLC | Privacy Policy