@Override
                    public void failed(final Exception ex) {
                        System.out.println(request + "->" + ex);
                    }
Example demonstrating how to evict expired and idle connections
from the connection pool.
httpclient5/src/test/java/org/apache/hc/client5/http/examples/AsyncClientConnectionEviction.java