shubhamvishu commented on code in PR #12183:
URL: https://github.com/apache/lucene/pull/12183#discussion_r1329299924


##########
lucene/core/src/java/org/apache/lucene/search/TaskExecutor.java:
##########
@@ -26,17 +26,21 @@
 import java.util.concurrent.Executor;
 import java.util.concurrent.Future;
 import java.util.concurrent.RunnableFuture;
+import java.util.concurrent.ThreadPoolExecutor;
 import org.apache.lucene.util.IOUtils;
 import org.apache.lucene.util.ThreadInterruptedException;
 
 /**
  * Executor wrapper responsible for the execution of concurrent tasks. Used to 
parallelize search
  * across segments as well as query rewrite in some cases.
  */
-class TaskExecutor {
+public class TaskExecutor {
   private final Executor executor;
+  private static final String THREAD_POOL_EXECUTOR_WORKER_CLASS =
+      "java.util.concurrent.ThreadPoolExecutor$Worker";
+  private static final String RUN_METHOD = "run";
 
-  TaskExecutor(Executor executor) {
+  public TaskExecutor(Executor executor) {

Review Comment:
   Makes sense



-- 
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: issues-unsubscr...@lucene.apache.org

For queries about this service, please contact Infrastructure at:
us...@infra.apache.org


---------------------------------------------------------------------
To unsubscribe, e-mail: issues-unsubscr...@lucene.apache.org
For additional commands, e-mail: issues-h...@lucene.apache.org

Reply via email to