VS
Size: a a a
VS
TZ
@Configuration
@EnableAsync
@ConfigurationProperties
@Getter
@Setter
public class AsyncConfig {
private static final String THREAD_POOL_TASK_EXECUTOR = "threadPoolTaskExecutor";
private int corePoolSize;
private int maxPoolSize;
private boolean waitForTasksToCompleteOnShutdown;
private String threadNamePrefix;
@Bean(THREAD_POOL_TASK_EXECUTOR)
public TaskExecutor getAsyncExecutor() {
ThreadPoolTaskExecutor executor = new ThreadPoolTaskExecutor();
executor.setCorePoolSize(corePoolSize);
executor.setMaxPoolSize(maxPoolSize);
executor.setWaitForTasksToCompleteOnShutdown(waitForTasksToCompleteOnShutdown);
executor.setThreadNamePrefix(threadNamePrefix);
return executor;
}
}
RS
RS
Ю
НГ
b💬
Ю
Ю
Ю
RK
Ю
VS
Ю
Ю
VS
VS
Ю
Ю
VS