public static void executeAsync ( Executor executor , HttpRequestBase request , FutureCallback < HttpResponse > callback ) { try { executor . execute ( new AsyncHttpCall ( request , callback ) ) ; } catch ( Exception e ) { log . error ( "Failed to execute asynchronously: " + request . getMethod ( ) + " " + request . getURI ( ) . toString ( ) ) ; } }
Step 2 . execute request asynchronously