|
|
|
@ -14,7 +14,7 @@ public class ThreadPoolConfig {
|
|
|
|
|
@Primary
|
|
|
|
|
public ExecutorService sonarScannerPool() {
|
|
|
|
|
ThreadFactory sonarScannerPool = new CustomizableThreadFactory("sonarScanner-pool-");
|
|
|
|
|
return new ThreadPoolExecutor(10, 10, 0,
|
|
|
|
|
return new ThreadPoolExecutor(50, 50, 0,
|
|
|
|
|
TimeUnit.SECONDS, new ArrayBlockingQueue<>(10000), sonarScannerPool,
|
|
|
|
|
new ThreadPoolExecutor.AbortPolicy());
|
|
|
|
|
}
|
|
|
|
@ -23,7 +23,7 @@ public class ThreadPoolConfig {
|
|
|
|
|
@Bean("sonarQueryResultPool")
|
|
|
|
|
public ExecutorService queryResultPool() {
|
|
|
|
|
ThreadFactory sonarQueryResultPool = new CustomizableThreadFactory("sonarQueryResult-pool-");
|
|
|
|
|
return new ThreadPoolExecutor(5, 5, 0,
|
|
|
|
|
return new ThreadPoolExecutor(50, 50, 0,
|
|
|
|
|
TimeUnit.SECONDS, new ArrayBlockingQueue<>(10000),
|
|
|
|
|
sonarQueryResultPool,
|
|
|
|
|
new ThreadPoolExecutor.AbortPolicy());
|
|
|
|
|