private boolean validate ( PooledTransport transport ) { try { Response response = transport . execute ( validationRequest ) ; return response . hasSucceeded ( ) ; } catch ( IOException ioe ) { log . warn ( "Could not validate pooled connection on lease. Releasing pooled connection and trying again..." , ioe ) ; return false ; } }
Used to validate an idle pooled transport is still good for consumption .