Queue<Future<HttpResponse>> queue = new ConcurrentLinkedQueue<Future<HttpResponse>>();
for (int i = 0; i < 30; i++) {
BasicHttpRequest request = new BasicHttpRequest("GET", createRequestUri(pattern, count));
Future<HttpResponse> future = this.executor.execute(
new BasicAsyncRequestProducer(target, request),
new BasicAsyncResponseConsumer(),
this.connpool);
queue.add(future);
}
while (!queue.isEmpty()) {