Queue<Job> queue = new ConcurrentLinkedQueue<Job>();
for (Job job : jobs) {
queue.add(job);
}
ThrottlingHttpServiceHandler serviceHandler = new ThrottlingHttpServiceHandler(
HttpServerNio.DEFAULT_HTTP_PROC,
DefaultHttpResponseFactory.INSTANCE,
DefaultConnectionReuseStrategy.INSTANCE,
this.execService,
this.params);
serviceHandler.setHandlerResolver(
new SimpleHttpRequestHandlerResolver(requestHandler));
serviceHandler.setEventListener(
new SimpleEventListener());
ThrottlingHttpClientHandler clientHandler = new ThrottlingHttpClientHandler(
HttpClientNio.DEFAULT_HTTP_PROC,
requestExecutionHandler,