[Minor] Keep minimum thread pool size at 4

This commit is contained in:
Robert von Burg 2018-11-22 23:24:36 +01:00
parent db54093ecd
commit cb633081eb
1 changed files with 1 additions and 1 deletions

View File

@ -137,7 +137,7 @@ public class StrolchAgent {
DBC.PRE.assertNotEmpty("poolName must be set!", poolName);
ScheduledExecutorService executor = this.scheduledExecutors.get(poolName);
if (executor == null) {
executor = Executors.newScheduledThreadPool(0, new ThreadPoolFactory(poolName));
executor = Executors.newScheduledThreadPool(4, new ThreadPoolFactory(poolName));
this.scheduledExecutors.put(poolName, executor);
}