Ensure the constructors pass along the default value as read from system
property if set.
This commit is contained in:
Timothy Bish 2016-04-21 13:15:20 -04:00
parent 102599ee28
commit 3e7847aead
1 changed files with 2 additions and 2 deletions

View File

@ -64,11 +64,11 @@ public class TaskRunnerFactory implements Executor {
}
private TaskRunnerFactory(String name, int priority, boolean daemon, int maxIterationsPerRun) {
this(name,priority,daemon,maxIterationsPerRun,false);
this(name, priority, daemon, maxIterationsPerRun, false);
}
public TaskRunnerFactory(String name, int priority, boolean daemon, int maxIterationsPerRun, boolean dedicatedTaskRunner) {
this(name, priority, daemon, maxIterationsPerRun, dedicatedTaskRunner, Integer.MAX_VALUE);
this(name, priority, daemon, maxIterationsPerRun, dedicatedTaskRunner, getDefaultMaximumPoolSize());
}
public TaskRunnerFactory(String name, int priority, boolean daemon, int maxIterationsPerRun, boolean dedicatedTaskRunner, int maxThreadPoolSize) {