modules/andes-core/broker/src/main/java/org/wso2/andes/store/rdbms/RDBMSMessageStoreImpl.java
protected void rollback(Connection connection, String task) {
        if (connection != null) {
            try {
                connection.rollback();
            } catch (SQLException e) {
                log.warn("Rollback failed on " + task, e);
            }
        }
    }
/**
     * On database update failure tries to rollback
     *
     * @param connection database connection
     * @param task       explanation of the task done when the rollback was triggered
     */
On database update failure tries to rollback
@param connection database connection
@param task       explanation of the task done when the rollback was triggered
On database update failure tries to rollback @param connection database connection @param task explanation of the task done when the rollback was triggered
protected void rollback(Connection connection, String task) {
        if (connection != null) {
            try {
                connection.rollback();
            } catch (SQLException e) {
                log.warn("Rollback failed on " + task, e);
            }
        }
    }
protected void rollback ( Connection connection , String task ) { if ( connection != null ) { try { connection . rollback ( ) ; } catch ( SQLException e ) { log . warn ( "Rollback failed on " + task , e ) ; } } }
On database update failure tries to rollback
 @param connection database connection
 @param task       explanation of the task done when the rollback was triggered
On database update failure tries to rollback @param connection database connection @param task explanation of the task done when the rollback was triggered