138139140141142143144145146147148
// completion of the request execution requestCount.await(); System.out.println("Shutting down I/O reactor"); ioReactor.shutdown(); System.out.println("Done"); } static class MyHttpRequestExecutionHandler implements HttpRequestExecutionHandler {
147148149150151152153154155156157
153154155156157158159160161162163
144145146147148149150151152153154
152153154155156157158159160161
}); latch.await(); System.out.println("Shutting down I/O reactor"); ioReactor.shutdown(); System.out.println("Done"); } }
143144145146147148149150151152
}); } latch.await(); System.out.println("Shutting down I/O reactor"); ioReactor.shutdown(); System.out.println("Done"); } }
196197198199200201202203204205206
System.err.println("Interrupted"); } catch (IOException ex) { ex.printStackTrace(); } finally { try { connectingIOReactor.shutdown(); } catch (IOException ex2) { ex2.printStackTrace(); } } }