@Override
                            public void failed(final Exception ex) {
                                latch.countDown();
                                System.out.println(request + "->" + ex);
                            }
This example demonstrates pipelined execution of multiple HTTP/1.1 message exchanges.
httpclient5/src/test/java/org/apache/hc/client5/http/examples/AsyncClientHttp1Pipelining.java