List of usage examples for io.netty.channel ChannelHandlerAdapter subclass-usage
From source file com.netty.basic.TimeClientHandler.java
public class TimeClientHandler extends ChannelHandlerAdapter { private static final Logger logger = Logger.getLogger(TimeClientHandler.class.getName()); private final ByteBuf firstMessage;
From source file com.netty.basic.TimeServerHandler.java
public class TimeServerHandler extends ChannelHandlerAdapter { @Override public void channelRead(ChannelHandlerContext ctx, Object msg) throws Exception { ByteBuf buf = (ByteBuf) msg; byte[] req = new byte[buf.readableBytes()];
From source file com.netty.codec.marshalling.SubReqClientHandler.java
public class SubReqClientHandler extends ChannelHandlerAdapter { /** * Creates a client-side handler. */ public SubReqClientHandler() {
From source file com.netty.codec.marshalling.SubReqServerHandler.java
@Sharable public class SubReqServerHandler extends ChannelHandlerAdapter { @Override public void channelRead(ChannelHandlerContext ctx, Object msg) throws Exception { SubscribeReq req = (SubscribeReq) msg;
From source file com.netty.codec.protobuf.SubReqClientHandler.java
public class SubReqClientHandler extends ChannelHandlerAdapter { /** * Creates a client-side handler. */ public SubReqClientHandler() {
From source file com.netty.codec.protobuf.SubReqServerHandler.java
@Sharable public class SubReqServerHandler extends ChannelHandlerAdapter { @Override public void channelRead(ChannelHandlerContext ctx, Object msg) throws Exception { SubscribeReqProto.SubscribeReq req = (SubscribeReqProto.SubscribeReq) msg;
From source file com.netty.codec.serializable.netty.SubReqClientHandler.java
public class SubReqClientHandler extends ChannelHandlerAdapter { /** * Creates a client-side handler. */ public SubReqClientHandler() {
From source file com.netty.codec.serializable.netty.SubReqServerHandler.java
@Sharable public class SubReqServerHandler extends ChannelHandlerAdapter { @Override public void channelRead(ChannelHandlerContext ctx, Object msg) throws Exception { SubscribeReq req = (SubscribeReq) msg;
From source file com.netty.frame.correct.TimeClientHandler.java
public class TimeClientHandler extends ChannelHandlerAdapter { private static final Logger logger = Logger.getLogger(TimeClientHandler.class.getName()); private int counter;
From source file com.netty.frame.correct.TimeServerHandler.java
public class TimeServerHandler extends ChannelHandlerAdapter { private int counter; @Override public void channelRead(ChannelHandlerContext ctx, Object msg) throws Exception {