File tree Expand file tree Collapse file tree 1 file changed +17
-1
lines changed
src/main/java/clap/server/config/async Expand file tree Collapse file tree 1 file changed +17
-1
lines changed Original file line number Diff line number Diff line change 99@ EnableAsync
1010public class AsyncConfig {
1111
12-
1312 @ Bean (name = "notificationExecutor" )
1413 public ThreadPoolTaskExecutor taskExecutor () {
1514 ThreadPoolTaskExecutor executor = new ThreadPoolTaskExecutor ();
@@ -26,4 +25,21 @@ public ThreadPoolTaskExecutor taskExecutor() {
2625 executor .initialize ();
2726 return executor ;
2827 }
28+
29+ @ Bean (name = "emailExecutor" )
30+ public ThreadPoolTaskExecutor emailExecutor () {
31+ ThreadPoolTaskExecutor executor = new ThreadPoolTaskExecutor ();
32+
33+ // 스레드 풀 크기 설정 (100명 사용자를 위한 설정)
34+ executor .setCorePoolSize (10 );
35+ executor .setMaxPoolSize (30 );
36+ executor .setQueueCapacity (100 );
37+ executor .setThreadNamePrefix ("async-email-" );
38+
39+ executor .setKeepAliveSeconds (60 );
40+
41+ executor .initialize ();
42+ return executor ;
43+ }
44+
2945}
You can’t perform that action at this time.
0 commit comments