Author: markt
Date: Sat Jul 17 18:24:01 2010
New Revision: 965123
URL: http://svn.apache.org/viewvc?rev=965123&view=rev
Log:
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)
Modified:
tomcat/trunk/java/org/apache/coyote/ProtocolHandler.java
Modified: tomcat/trunk/java/org/apache/coyote/ProtocolHandler.java
URL:
http://svn.apache.org/viewvc/tomcat/trunk/java/org/apache/coyote/ProtocolHandler.java?rev=965123&r1=965122&r2=965123&view=diff
==============================================================================
--- tomcat/trunk/java/org/apache/coyote/ProtocolHandler.java (original)
+++ tomcat/trunk/java/org/apache/coyote/ProtocolHandler.java Sat Jul 17
18:24:01 2010
@@ -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;
---------------------------------------------------------------------
To unsubscribe, e-mail: [email protected]
For additional commands, e-mail: [email protected]