Merged #92 "Create setting for work queue default thread pool size"
| | |
| | | - Add setting to allow STARTTLS without requiring SMTPS (pr-183) |
| | | - Added an extension point for monitoring onStartup and onShutdown (ticket-79) |
| | | - Tag server-side merges when incremental push tags are enabled (issue-432, ticket-85) |
| | | - Add setting to control default thread pool size for miscellaneous background tasks (ticket-92) |
| | | dependencyChanges: |
| | | - Update to javax.mail 1.5.1 (issue-417, ticket-58) |
| | | contributors: |
| | |
| | | settings: |
| | | - { name: 'web.allowDeletingNonEmptyRepositories', defaultValue: 'true' } |
| | | - { name: 'mail.starttls', defaultValue: 'false' } |
| | | - { name: 'execution.defaultThreadPoolSize', defaultValue: '1' } |
| | | } |
| | | |
| | | # |
| | |
| | | # SINCE 1.5.0
|
| | | plugins.registry = http://plugins.gitblit.com/plugins.json
|
| | |
|
| | | # Number of threads used to handle miscellaneous tasks in the background.
|
| | | #
|
| | | # SINCE 1.6.0
|
| | | # RESTART REQUIRED
|
| | | execution.defaultThreadPoolSize = 1
|
| | |
|
| | | #
|
| | | # Groovy Integration
|
| | | #
|
| | |
| | | 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 |