public DatabusClientNettyThreadPools(int id,
Timer timer,
ExecutorService bossExecutorService,
ExecutorService ioExecutorService, ChannelGroup channelGroup)
{
_timer = (timer != null) ? timer : new HashedWheelTimer(5, TimeUnit.MILLISECONDS);
_bossExecutorService = (bossExecutorService != null) ? bossExecutorService : Executors.newCachedThreadPool(new NamedThreadFactory("io" + id));
_ioExecutorService = (ioExecutorService != null) ? ioExecutorService : Executors.newCachedThreadPool(new NamedThreadFactory("boss" + id )) ;
_channelGroup = (channelGroup != null) ? channelGroup : new DefaultChannelGroup() ;
}