aboutsummaryrefslogtreecommitdiffstats
path: root/container-core/src/main/java/com/yahoo/container/handler/ThreadPoolProvider.java
diff options
context:
space:
mode:
authorBjørn Christian Seime <bjorncs@verizonmedia.com>2022-04-19 11:29:55 +0200
committerBjørn Christian Seime <bjorncs@verizonmedia.com>2022-04-19 13:35:09 +0200
commitd965890a02a55f2761ef65e81185747084e37684 (patch)
tree092bc3e854b68ec861ec420383edd70d4846a7c1 /container-core/src/main/java/com/yahoo/container/handler/ThreadPoolProvider.java
parent607ba8c0e577e318890d9f253187ac290cf5eb05 (diff)
Improve class names for the container threadpools
Diffstat (limited to 'container-core/src/main/java/com/yahoo/container/handler/ThreadPoolProvider.java')
-rw-r--r--container-core/src/main/java/com/yahoo/container/handler/ThreadPoolProvider.java11
1 files changed, 6 insertions, 5 deletions
diff --git a/container-core/src/main/java/com/yahoo/container/handler/ThreadPoolProvider.java b/container-core/src/main/java/com/yahoo/container/handler/ThreadPoolProvider.java
index bc3c35cb78e..1818a3d97b4 100644
--- a/container-core/src/main/java/com/yahoo/container/handler/ThreadPoolProvider.java
+++ b/container-core/src/main/java/com/yahoo/container/handler/ThreadPoolProvider.java
@@ -6,15 +6,16 @@ import com.yahoo.component.AbstractComponent;
import com.yahoo.container.di.componentgraph.Provider;
import com.yahoo.container.handler.threadpool.ContainerThreadPool;
import com.yahoo.container.handler.threadpool.ContainerThreadpoolConfig;
-import com.yahoo.container.handler.threadpool.DefaultContainerThreadpool;
+import com.yahoo.container.handler.threadpool.ContainerThreadpoolImpl;
import com.yahoo.container.protect.ProcessTerminator;
import com.yahoo.jdisc.Metric;
import java.util.concurrent.Executor;
/**
- * A configurable thread pool provider. This provides the worker threads used for normal request processing.
- * Request an Executor injected in your component constructor if you want to use it.
+ * A configurable thread pool provider for the jdisc default threadpool.
+ * This provides the worker threads used for normal request processing.
+ * Request an {@link Executor} injected in your component constructor if you want to use it.
*
* @author Steinar Knutsen
* @author baldersheim
@@ -26,11 +27,11 @@ public class ThreadPoolProvider extends AbstractComponent implements Provider<Ex
@Inject
public ThreadPoolProvider(ThreadpoolConfig config, Metric metric) {
- this.threadpool = new DefaultContainerThreadpool(translateConfig(config), metric);
+ this.threadpool = new ContainerThreadpoolImpl(translateConfig(config), metric);
}
public ThreadPoolProvider(ThreadpoolConfig config, Metric metric, ProcessTerminator processTerminator) {
- this.threadpool = new DefaultContainerThreadpool(translateConfig(config), metric, processTerminator);
+ this.threadpool = new ContainerThreadpoolImpl(translateConfig(config), metric, processTerminator);
}
/**