149150151152153154155156157158159
} } System.out.println("Shutting down I/O reactor"); ioReactor.shutdown(); System.out.println("Done"); } static class MyHttpRequestExecutionHandler implements HttpRequestExecutionHandler {
140141142143144145146147148149150
156157158159160161162163164165166
// 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
202203204205206207208209210211212
System.err.println("Interrupted"); } catch (IOException ex) { ex.printStackTrace(); } finally { try { connectingIOReactor.shutdown(); } catch (IOException ex2) { ex2.printStackTrace(); } } }
152153154155156157158159160161
}); latch.await(); System.out.println("Shutting down I/O reactor"); ioReactor.shutdown(); System.out.println("Done"); } }