this.name = name;
try {
String baseName = "http-client-" + name;
ThreadGroup threadGroup = new ThreadGroup(baseName);
QueuedThreadPool threadPool = new JettyThreadPool(threadGroup, config);
threadPool.setName(baseName);
threadPool.setDaemon(true);
threadPool.start();
threadPool.setStopTimeout(2000);
executor = threadPool;
scheduler = new JettyScheduler(threadGroup, baseName + "-scheduler");
scheduler.start();