reta commented on a change in pull request #683:
URL: https://github.com/apache/cxf/pull/683#discussion_r456118032



##########
File path: 
rt/rs/microprofile-client/src/main/java/org/apache/cxf/microprofile/client/MicroProfileClientFactoryBean.java
##########
@@ -63,7 +66,7 @@ public 
MicroProfileClientFactoryBean(MicroProfileClientConfigurableImpl<RestClie
         super(new MicroProfileServiceFactoryBean());
         this.configuration = configuration.getConfiguration();
         this.comparator = 
MicroProfileClientProviderFactory.createComparator(this);
-        this.executorService = executorService;
+        this.executorService = (executorService == null) ? 
defaultExecutorService() : executorService; 

Review comment:
       Sorry, this part I didn't get. With respect to threads (aka workers), 
`ForkJoinPool` is 100% lazy: it does not preallocate threads upfront if there 
is no work to be done, the `ForkJoinPool`'s threads are created only when work 
is scheduled.




----------------------------------------------------------------
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.

For queries about this service, please contact Infrastructure at:
[email protected]


Reply via email to