org.zodiac.sdk.simplenetty.handler.ChannelInboundHandlerAdapter Maven / Gradle / Ivy
Go to download
Show more of this group Show more artifacts with this name
Show all versions of zodiac-sdk-nio Show documentation
Show all versions of zodiac-sdk-nio Show documentation
Zodiac SDK NIO2(New Non-Blocking IO)
package org.zodiac.sdk.simplenetty.handler;
import org.zodiac.sdk.simplenetty.enums.ChannelHandlerType;
public class ChannelInboundHandlerAdapter extends ChannelHandlerAdapter {
public ChannelInboundHandlerAdapter() {
type = ChannelHandlerType.IN_BOUND;
}
@Override
public void channelActive(ChannelHandlerContext var1) throws Exception {
}
@Override
public void channelInactive(ChannelHandlerContext var1) throws Exception {
}
@Override
public Object channelRead(ChannelHandlerContext var1, Object var2) throws Exception {
return null;
}
@Override
public void channelReadComplete(ChannelHandlerContext var1) throws Exception {
}
@Override
public Object channelWrite(ChannelHandlerContext var1, Object var2) throws Exception {
return var2;
}
@Override
public void channelWriteComplete(ChannelHandlerContext var1) throws Exception {
}
@Override
public void exceptionCaught(ChannelHandlerContext var1, Throwable var2) {
}
}