MelodyShen commented on code in PR #30439:
URL: https://github.com/apache/beam/pull/30439#discussion_r1508317550
##########
runners/google-cloud-dataflow-java/worker/src/main/java/org/apache/beam/runners/dataflow/worker/util/BoundedQueueExecutor.java:
##########
@@ -104,6 +106,20 @@ public void forceExecute(Runnable work, long workBytes) {
executeLockHeld(work, workBytes);
}
+ // Set the maximum/core pool size of the executor.
+ public void setMaximumPoolSize(int maximumPoolSize) {
Review Comment:
Sounds good. I will refactor the class for related atomics and non-guarded
fields.
--
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]