108109110111112113114115116117118
pipeline.addLast("handler", new ChannelInboundHandlerAdapter() { @Override public void channelRead(ChannelHandlerContext ctx, Object msg) throws Exception { latch.countDown(); hdfs.accept((SyslogMessage)msg); } }); } });