kwin commented on code in PR #38:
URL:
https://github.com/apache/sling-org-apache-sling-event/pull/38#discussion_r1819164641
##########
src/main/java/org/apache/sling/event/impl/EventingThreadPool.java:
##########
@@ -53,11 +55,19 @@ public class EventingThreadPool implements ThreadPool {
public @interface Config {
@AttributeDefinition(name = "Pool Size",
- description="The size of the thread pool. This pool is used to
execute jobs and therefore "
- + "limits the maximum number of jobs executed in
parallel.")
- int minPoolSize() default 35;
+ description = "The size of the thread pool. This pool is used
to execute jobs and therefore "
+ + "limits the maximum number of jobs executed in
parallel. "
+ + "A value of -1 is substituted with the number of
available processors. "
+ + "A decimal number between 0.0 and 1.0 is treated as
a fraction of available processors. "
+ + "For example 0.5 means half of the available
processors. ")
+ double minPoolSize() default 35;
Review Comment:
It is according to
https://docs.osgi.org/specification/osgi.cmpn/8.0.0/service.component.html#service.component-component.property.value.coercion.
--
This is an automated message from the Apache Git Service.
To respond to the message, please log on to GitHub and use the
URL above to go to the specific comment.
To unsubscribe, e-mail: [email protected]
For queries about this service, please contact Infrastructure at:
[email protected]