private boolean containsThrottlingException ( List < FailedBatch > failedBatches ) { for ( FailedBatch failedBatch : failedBatches ) { if ( failedBatch . isThrottling ( ) ) { return true ; } } return false ; }
Check whether there are throttling exception in the failed batches .