From 3a876f583b6589c6e756f01325437b6a4d9d66f5 Mon Sep 17 00:00:00 2001 From: markt Date: Sat, 17 Jul 2010 18:24:01 +0000 Subject: [PATCH] Expose executor. Required so Servlet 3 Async implementation can use the container thread pool when a new thread needs to be dispatched. (e.g. from AsyncContext.start(Runnable) git-svn-id: https://svn.apache.org/repos/asf/tomcat/trunk@965123 13f79535-47bb-0310-9956-ffa450edef68 --- java/org/apache/coyote/ProtocolHandler.java | 7 +++++++ 1 file changed, 7 insertions(+) diff --git a/java/org/apache/coyote/ProtocolHandler.java b/java/org/apache/coyote/ProtocolHandler.java index c952dd8d2..25eea185c 100644 --- a/java/org/apache/coyote/ProtocolHandler.java +++ b/java/org/apache/coyote/ProtocolHandler.java @@ -18,6 +18,7 @@ package org.apache.coyote; import java.util.Iterator; +import java.util.concurrent.Executor; /** @@ -51,6 +52,12 @@ public interface ProtocolHandler { /** + * The executor, provide access to the underlying thread pool. + */ + public Executor getExecutor(); + + + /** * Initialise the protocol. */ public void init() throws Exception; -- 2.11.0