diff options
author | James Moger <james.moger@gitblit.com> | 2014-05-29 12:40:35 -0400 |
---|---|---|
committer | James Moger <james.moger@gitblit.com> | 2014-05-29 12:40:35 -0400 |
commit | fb9cd5968346045e1129406ca54639075316a396 (patch) | |
tree | e0b032b69b41cbd3b4815d6866224ab8cfc66c98 /src/main/java/com/gitblit/manager | |
parent | 4bdf5a568311796772b46efc6e6ce30e10a01757 (diff) | |
download | gitblit-fb9cd5968346045e1129406ca54639075316a396.tar.gz gitblit-fb9cd5968346045e1129406ca54639075316a396.zip |
Add setting to control thread pool size for default work queue
Diffstat (limited to 'src/main/java/com/gitblit/manager')
-rw-r--r-- | src/main/java/com/gitblit/manager/ServicesManager.java | 3 |
1 files changed, 2 insertions, 1 deletions
diff --git a/src/main/java/com/gitblit/manager/ServicesManager.java b/src/main/java/com/gitblit/manager/ServicesManager.java index b1c97ba4..755d8bac 100644 --- a/src/main/java/com/gitblit/manager/ServicesManager.java +++ b/src/main/java/com/gitblit/manager/ServicesManager.java @@ -80,8 +80,9 @@ public class ServicesManager implements IManager { public ServicesManager(IGitblit gitblit) { this.settings = gitblit.getSettings(); this.gitblit = gitblit; + int defaultThreadPoolSize = settings.getInteger(Keys.execution.defaultThreadPoolSize, 1); this.idGenerator = new IdGenerator(); - this.workQueue = new WorkQueue(idGenerator, 1); + this.workQueue = new WorkQueue(idGenerator, defaultThreadPoolSize); } @Override |