| 1234567891011121314151617181920 |
- package com.its.api.xnettcp.client.handler;
- import io.netty.channel.ChannelHandlerContext;
- import io.netty.channel.SimpleChannelInboundHandler;
- import lombok.extern.slf4j.Slf4j;
- @Slf4j
- public class NettyTcpClientInboundHandler extends SimpleChannelInboundHandler<Object> {
- @Override
- protected void channelRead0(ChannelHandlerContext channelHandlerContext, Object msg) throws Exception {
- }
- public void exceptionCaught(ChannelHandlerContext ctx, Throwable cause) throws Exception
- {
- log.error("exceptionCaught: {}", ctx.toString());
- super.exceptionCaught(ctx, cause);
- }
- }
|