Class ThreadPoolTaskConfig
java.lang.Object
io.github.lunasaw.sip.common.conf.ThreadPoolTaskConfig
@Configuration
@Order(1)
@EnableAsync(proxyTargetClass=true)
public class ThreadPoolTaskConfig
extends Object
ThreadPoolTask 配置类
- Author:
- lin
-
Field Summary
-
Constructor Summary
-
Method Summary
Modifier and TypeMethodDescriptionorg.springframework.scheduling.concurrent.ThreadPoolTaskExecutor
-
Field Details
-
cpuNum
public static final int cpuNum
-
-
Constructor Details
-
ThreadPoolTaskConfig
public ThreadPoolTaskConfig()
-
-
Method Details
-
taskExecutor
@Bean("sipTaskExecutor") public org.springframework.scheduling.concurrent.ThreadPoolTaskExecutor taskExecutor()- Returns:
-