Queue<Job> queue = new ConcurrentLinkedQueue<Job>();
for (int i = 0; i < jobs.length; i++) {
queue.add(jobs[i]);
}
ThrottlingHttpServiceHandler serviceHandler = new ThrottlingHttpServiceHandler(
this.serverHttpProc,
new DefaultHttpResponseFactory(),
new DefaultConnectionReuseStrategy(),
this.execService,
this.serverParams);
serviceHandler.setHandlerResolver(
new SimpleHttpRequestHandlerResolver(requestHandler));
serviceHandler.setEventListener(
new SimpleEventListener());
ThrottlingHttpClientHandler clientHandler = new ThrottlingHttpClientHandler(
this.clientHttpProc,
requestExecutionHandler,