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()
{
long start = System.currentTimeMillis();
public void run()