private static Map < Class < ? extends Throwable > , Boolean > getSqlRetryAbleExceptions ( ) { Map < Class < ? extends Throwable > , Boolean > retryableExceptions = new HashMap <> ( ) ; retryableExceptions . put ( SQLTransientException . class , true ) ; retryableExceptions . put ( SQLRecoverableException . class , true ) ; retryableExceptions . put ( TransientDataAccessException . class , true ) ; retryableExceptions . put ( SQLNonTransientConnectionException . class , true ) ; return retryableExceptions ; }
Returns all the exceptions for which a retry is useful .