You are viewing a plain text version of this content. The canonical link for it is here.
Posted to dev@tomcat.apache.org by ma...@apache.org on 2016/12/14 11:06:47 UTC

svn commit: r1774190 - /tomcat/trunk/java/org/apache/coyote/AbstractProcessor.java

Author: markt
Date: Wed Dec 14 11:06:47 2016
New Revision: 1774190

URL: http://svn.apache.org/viewvc?rev=1774190&view=rev
Log:
Reduce use of endpoint with a view to removing it entirely

Modified:
    tomcat/trunk/java/org/apache/coyote/AbstractProcessor.java

Modified: tomcat/trunk/java/org/apache/coyote/AbstractProcessor.java
URL: http://svn.apache.org/viewvc/tomcat/trunk/java/org/apache/coyote/AbstractProcessor.java?rev=1774190&r1=1774189&r2=1774190&view=diff
==============================================================================
--- tomcat/trunk/java/org/apache/coyote/AbstractProcessor.java (original)
+++ tomcat/trunk/java/org/apache/coyote/AbstractProcessor.java Wed Dec 14 11:06:47 2016
@@ -46,7 +46,7 @@ public abstract class AbstractProcessor
     protected Adapter adapter;
     protected final AsyncStateMachine asyncStateMachine;
     private volatile long asyncTimeout = -1;
-    protected final AbstractEndpoint<?,?> endpoint;
+    protected final Executor executor;
     protected final Request request;
     protected final Response response;
     protected volatile SocketWrapperBase<?> socketWrapper = null;
@@ -66,7 +66,7 @@ public abstract class AbstractProcessor
 
     protected AbstractProcessor(AbstractEndpoint<?,?> endpoint, Request coyoteRequest,
             Response coyoteResponse) {
-        this.endpoint = endpoint;
+        this.executor = endpoint.getExecutor();
         asyncStateMachine = new AsyncStateMachine(this);
         request = coyoteRequest;
         response = coyoteResponse;
@@ -157,10 +157,10 @@ public abstract class AbstractProcessor
 
 
     /**
-     * @return the Executor used by the underlying endpoint.
+     * @return the Executor used to dispatch processing to a container thread
      */
     protected Executor getExecutor() {
-        return endpoint.getExecutor();
+        return executor;
     }
 
 



---------------------------------------------------------------------
To unsubscribe, e-mail: dev-unsubscribe@tomcat.apache.org
For additional commands, e-mail: dev-help@tomcat.apache.org