package de.tum.in.www1.artemis.config;

import org.slf4j.Logger;
import org.slf4j.LoggerFactory;
import org.springframework.context.annotation.Bean;
import org.springframework.context.annotation.Configuration;
import org.springframework.scheduling.TaskScheduler;
import org.springframework.scheduling.annotation.EnableScheduling;
import org.springframework.scheduling.concurrent.ThreadPoolTaskScheduler;

@Configuration
@EnableScheduling
public class TaskSchedulingConfiguration {

    private final Logger log = LoggerFactory.getLogger(TaskSchedulingConfiguration.class);

    @Bean(name = "taskScheduler")
    public TaskScheduler taskScheduler() {
        log.debug("Creating Task Scheduler ");
        return new ThreadPoolTaskScheduler();
    }
}

@@ -703,14 +703,23 @@
     
-return
+var scheduler =
  new
@@ -746,16 +746,76 @@
 uler();%0A
+        scheduler.setPoolSize(4);%0A        return scheduler;%0A
     %7D%0A%7D%0A

use multiple thread in scheduler