-
-
Notifications
You must be signed in to change notification settings - Fork 86
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
feature: Add a numberThreads
parameter.
#133
Conversation
Add a parameter to specify an absolute value of threads to start. For the rational please see mathieucarbou#132
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Please remove the formatting to cleanup the diff and I'll merge. Thanks :-)
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Left a bunch of comments that you should take into account
* The default is 0 which implies that the default for <code>concurrencyFactor</code> | ||
* is used. | ||
*/ | ||
@Parameter(property = "license.numberThreads", defaultValue = "0") |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
This should be documented in the README
|
||
private int getNumberOfExecutorThreads() { | ||
int nThreads = numberThreads; | ||
if (nThreads != 0) { |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
are you validating against negative numbers?
Replaced by #146 |
Add a parameter to specify an absolute value of threads to start.
For the rational please see #132
Please choose either #132 or this PR, they are orthogonal and this PR includes also the fix of #132.