// add a framer to split incoming bytes to message chunks
connector.getPipeline().addLast("framer", new DelimiterBasedFrameDecoder(8192, true, Delimiters.nulDelimiter()));
// add message coding
connector.getPipeline().addLast("messageEncoder", new MessageEncoder());
connector.getPipeline().addLast("messageDecoder", new MessageDecoder());
// pinger is a cycler with high priority threads
// sends ping messages within a ping interval
_pinger = new Cycler(getPingInterval(), 0, Executors.newCachedThreadPool(new DaemonThreadFactory("pinger", Thread.MAX_PRIORITY)),
new Runnable()