summaryrefslogtreecommitdiffstats
path: root/container-core/src/main/java/com/yahoo/container/handler/threadpool/ContainerThreadPool.java
diff options
context:
space:
mode:
Diffstat (limited to 'container-core/src/main/java/com/yahoo/container/handler/threadpool/ContainerThreadPool.java')
-rw-r--r--container-core/src/main/java/com/yahoo/container/handler/threadpool/ContainerThreadPool.java3
1 files changed, 2 insertions, 1 deletions
diff --git a/container-core/src/main/java/com/yahoo/container/handler/threadpool/ContainerThreadPool.java b/container-core/src/main/java/com/yahoo/container/handler/threadpool/ContainerThreadPool.java
index 74bcb3a2e04..0686b41fb99 100644
--- a/container-core/src/main/java/com/yahoo/container/handler/threadpool/ContainerThreadPool.java
+++ b/container-core/src/main/java/com/yahoo/container/handler/threadpool/ContainerThreadPool.java
@@ -22,7 +22,7 @@ import java.util.concurrent.TimeUnit;
* @author bratseth
* @author bjorncs
*/
-public class ContainerThreadPool extends AbstractComponent implements AutoCloseable {
+public class ContainerThreadPool extends AbstractComponent implements AutoCloseable, Executor {
private final ExecutorServiceWrapper threadpool;
@@ -50,6 +50,7 @@ public class ContainerThreadPool extends AbstractComponent implements AutoClosea
}
public Executor executor() { return threadpool; }
+ @Override public void execute(Runnable runnable) { threadpool.execute(runnable); }
@Override public void close() { closeInternal(); }
@Override public void deconstruct() { closeInternal(); super.deconstruct(); }