Commit 71f35c32 authored by Matija Obreza's avatar Matija Obreza

Trying to fix a problem with ThreadPoolTaskExecutor

parent 1469bb55
......@@ -20,7 +20,6 @@ import java.util.concurrent.ThreadPoolExecutor;
import org.springframework.context.annotation.Bean;
import org.springframework.context.annotation.Configuration;
import org.springframework.core.task.TaskExecutor;
import org.springframework.scheduling.annotation.EnableAsync;
import org.springframework.scheduling.annotation.EnableScheduling;
import org.springframework.scheduling.concurrent.ThreadPoolTaskExecutor;
......@@ -31,7 +30,7 @@ import org.springframework.scheduling.concurrent.ThreadPoolTaskExecutor;
public class SpringSchedulerConfig {
@Bean(destroyMethod = "shutdown")
public TaskExecutor taskExecutor() {
public ThreadPoolTaskExecutor taskExecutor() {
final ThreadPoolTaskExecutor pool = new ThreadPoolTaskExecutor();
pool.setCorePoolSize(4);
pool.setMaxPoolSize(8);
......
Markdown is supported
0% or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment