Skip to content
GitLab
Menu
Projects
Groups
Snippets
Loading...
Help
Help
Support
Community forum
Keyboard shortcuts
?
Submit feedback
Contribute to GitLab
Sign in
Toggle navigation
Menu
Open sidebar
Genesys PGR
Genesys Backend
Commits
71f35c32
Commit
71f35c32
authored
Mar 20, 2015
by
Matija Obreza
Browse files
Trying to fix a problem with ThreadPoolTaskExecutor
parent
1469bb55
Changes
1
Hide whitespace changes
Inline
Side-by-side
src/main/java/org/genesys2/spring/config/SpringSchedulerConfig.java
View file @
71f35c32
...
...
@@ -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
ThreadPool
TaskExecutor
taskExecutor
()
{
final
ThreadPoolTaskExecutor
pool
=
new
ThreadPoolTaskExecutor
();
pool
.
setCorePoolSize
(
4
);
pool
.
setMaxPoolSize
(
8
);
...
...
Write
Preview
Markdown
is supported
0%
Try again
or
attach a new file
.
Attach a file
Cancel
You are about to add
0
people
to the discussion. Proceed with caution.
Finish editing this message first!
Cancel
Please
register
or
sign in
to comment