/** * Invoked when a Channel was closed and all its related resources were released. */ @Override public void channelClosed(ChannelHandlerContext ctx, ChannelStateEvent e) throws Exception { //logger.info(e.toString()); this.listener.fireChannelClosed(); } }
/** * Invoked when an exception was raised by an I/O thread or an upstream handler. */ @Override public void exceptionCaught(ChannelHandlerContext ctx, ExceptionEvent e) throws Exception { //logger.warn("Exception triggered in upstream ChannelHandler: {}", e.getCause()); this.listener.fireExceptionThrown(e.getCause()); }
@Override public void messageReceived(ChannelHandlerContext ctx, MessageEvent e) throws Exception { if (e.getMessage() instanceof Pdu) { Pdu pdu = (Pdu)e.getMessage(); this.listener.firePduReceived(pdu); } }
/** * Invoked when an exception was raised by an I/O thread or an upstream handler. */ @Override public void exceptionCaught(ChannelHandlerContext ctx, ExceptionEvent e) throws Exception { //logger.warn("Exception triggered in upstream ChannelHandler: {}", e.getCause()); this.listener.fireExceptionThrown(e.getCause()); }
@Override public void messageReceived(ChannelHandlerContext ctx, MessageEvent e) throws Exception { if (e.getMessage() instanceof Pdu) { Pdu pdu = (Pdu)e.getMessage(); this.listener.firePduReceived(pdu); } }
/** * Invoked when a Channel was closed and all its related resources were released. */ @Override public void channelClosed(ChannelHandlerContext ctx, ChannelStateEvent e) throws Exception { //logger.info(e.toString()); this.listener.fireChannelClosed(); } }
/** * Invoked when an exception was raised by an I/O thread or an upstream handler. */ @Override public void exceptionCaught(ChannelHandlerContext ctx, ExceptionEvent e) throws Exception { //logger.warn("Exception triggered in upstream ChannelHandler: {}", e.getCause()); this.listener.fireExceptionThrown(e.getCause()); }
@Override public void messageReceived(ChannelHandlerContext ctx, MessageEvent e) throws Exception { if (e.getMessage() instanceof Pdu) { Pdu pdu = (Pdu)e.getMessage(); this.listener.firePduReceived(pdu); } }
/** * Invoked when a Channel was closed and all its related resources were released. */ @Override public void channelClosed(ChannelHandlerContext ctx, ChannelStateEvent e) throws Exception { //logger.info(e.toString()); this.listener.fireChannelClosed(); } }
/** * Invoked when an exception was raised by an I/O thread or an upstream handler. */ @Override public void exceptionCaught(ChannelHandlerContext ctx, ExceptionEvent e) throws Exception { //logger.warn("Exception triggered in upstream ChannelHandler: {}", e.getCause()); this.listener.fireExceptionThrown(e.getCause()); }
@Override public void messageReceived(ChannelHandlerContext ctx, MessageEvent e) throws Exception { if (e.getMessage() instanceof Pdu) { Pdu pdu = (Pdu)e.getMessage(); this.listener.firePduReceived(pdu); } }
/** * Invoked when a Channel was closed and all its related resources were released. */ @Override public void channelClosed(ChannelHandlerContext ctx, ChannelStateEvent e) throws Exception { //logger.info(e.toString()); this.listener.fireChannelClosed(); } }