public synchronized void init(){
  channelFactory=new NioClientSocketChannelFactory(Executors.newCachedThreadPool(),Executors.newCachedThreadPool());
  datagramChannelFactory=new NioDatagramChannelFactory(Executors.newCachedThreadPool());
  timer=new HashedWheelTimer();
}

public synchronized void init ( ) { channelFactory = new NioClientSocketChannelFactory ( Executors . newCachedThreadPool ( ) , Executors . newCachedThreadPool ( ) ) ; datagramChannelFactory = new NioDatagramChannelFactory ( Executors . newCachedThreadPool ( ) ) ; timer = new HashedWheelTimer ( ) ; }
initialize ; cached threadpool is safe as it is releasing resources automatically if idle
