diff --git a/jetty-client/src/main/java/org/eclipse/jetty/client/HttpSender.java b/jetty-client/src/main/java/org/eclipse/jetty/client/HttpSender.java index 270ae8d0275..ce63fa1318c 100644 --- a/jetty-client/src/main/java/org/eclipse/jetty/client/HttpSender.java +++ b/jetty-client/src/main/java/org/eclipse/jetty/client/HttpSender.java @@ -694,14 +694,14 @@ public abstract class HttpSender implements AsyncContentProvider.Listener { // There is more content to send sendContent(exchange, content, this); - return Action.EXECUTING; + return Action.SCHEDULED; } if (content.isConsumed()) { sendContent(exchange, content, lastCallback); - return Action.EXECUTING; + return Action.SCHEDULED; } while (true) @@ -725,7 +725,7 @@ public abstract class HttpSender implements AsyncContentProvider.Listener LOG.debug("Deferred content available for {}", request); // TODO: this case is not covered by tests sendContent(exchange, content, this); - return Action.EXECUTING; + return Action.SCHEDULED; } break; } diff --git a/jetty-server/src/main/java/org/eclipse/jetty/server/HttpConnection.java b/jetty-server/src/main/java/org/eclipse/jetty/server/HttpConnection.java index 6f440d7b936..bf3f62bb6c7 100644 --- a/jetty-server/src/main/java/org/eclipse/jetty/server/HttpConnection.java +++ b/jetty-server/src/main/java/org/eclipse/jetty/server/HttpConnection.java @@ -567,7 +567,7 @@ public class HttpConnection extends AbstractConnection implements Runnable, Http } else continue; - return Action.EXECUTING; + return Action.SCHEDULED; } case SHUTDOWN_OUT: { @@ -684,7 +684,7 @@ public class HttpConnection extends AbstractConnection implements Runnable, Http } else continue; - return Action.EXECUTING; + return Action.SCHEDULED; } case SHUTDOWN_OUT: { diff --git a/jetty-server/src/main/java/org/eclipse/jetty/server/HttpOutput.java b/jetty-server/src/main/java/org/eclipse/jetty/server/HttpOutput.java index 92844a3a299..36c7273f0fb 100644 --- a/jetty-server/src/main/java/org/eclipse/jetty/server/HttpOutput.java +++ b/jetty-server/src/main/java/org/eclipse/jetty/server/HttpOutput.java @@ -763,14 +763,14 @@ public class HttpOutput extends ServletOutputStream implements Runnable { _flushed=true; write(_aggregate, false, this); - return Action.EXECUTING; + return Action.SCHEDULED; } if (!_flushed) { _flushed=true; write(BufferUtil.EMPTY_BUFFER,false,this); - return Action.EXECUTING; + return Action.SCHEDULED; } return Action.SUCCEEDED; @@ -813,7 +813,7 @@ public class HttpOutput extends ServletOutputStream implements Runnable { _completed=_len==0; write(_aggregate, _complete && _completed, this); - return Action.EXECUTING; + return Action.SCHEDULED; } // Can we just aggregate the remainder? @@ -831,7 +831,7 @@ public class HttpOutput extends ServletOutputStream implements Runnable { _completed=true; write(_buffer, _complete, this); - return Action.EXECUTING; + return Action.SCHEDULED; } // otherwise take a slice @@ -843,7 +843,7 @@ public class HttpOutput extends ServletOutputStream implements Runnable _slice.position(p); _completed=!_buffer.hasRemaining(); write(_slice, _complete && _completed, this); - return Action.EXECUTING; + return Action.SCHEDULED; } // all content written, but if we have not yet signal completion, we @@ -854,7 +854,7 @@ public class HttpOutput extends ServletOutputStream implements Runnable { _completed=true; write(BufferUtil.EMPTY_BUFFER, _complete, this); - return Action.EXECUTING; + return Action.SCHEDULED; } closed(); } @@ -914,7 +914,7 @@ public class HttpOutput extends ServletOutputStream implements Runnable _buffer.position(0); _buffer.limit(len); write(_buffer,_eof,this); - return Action.EXECUTING; + return Action.SCHEDULED; } @Override @@ -978,7 +978,7 @@ public class HttpOutput extends ServletOutputStream implements Runnable _buffer.flip(); write(_buffer,_eof,this); - return Action.EXECUTING; + return Action.SCHEDULED; } @Override diff --git a/jetty-servlets/src/main/java/org/eclipse/jetty/servlets/gzip/GzipHttpOutput.java b/jetty-servlets/src/main/java/org/eclipse/jetty/servlets/gzip/GzipHttpOutput.java index 759188e4538..9364cd9c92a 100644 --- a/jetty-servlets/src/main/java/org/eclipse/jetty/servlets/gzip/GzipHttpOutput.java +++ b/jetty-servlets/src/main/java/org/eclipse/jetty/servlets/gzip/GzipHttpOutput.java @@ -324,7 +324,7 @@ public class GzipHttpOutput extends HttpOutput addTrailer(); superWrite(_buffer,complete,this); - return Action.EXECUTING; + return Action.SCHEDULED; } } @@ -389,7 +389,7 @@ public class GzipHttpOutput extends HttpOutput addTrailer(); superWrite(_buffer,complete,this); - return Action.EXECUTING; + return Action.SCHEDULED; } } diff --git a/jetty-spdy/spdy-core/src/main/java/org/eclipse/jetty/spdy/Flusher.java b/jetty-spdy/spdy-core/src/main/java/org/eclipse/jetty/spdy/Flusher.java index a264b14935a..52d6283141c 100644 --- a/jetty-spdy/spdy-core/src/main/java/org/eclipse/jetty/spdy/Flusher.java +++ b/jetty-spdy/spdy-core/src/main/java/org/eclipse/jetty/spdy/Flusher.java @@ -213,13 +213,13 @@ public class Flusher // MAX_GATHER parameter, and/or autotune the buffer returned // by FrameBytes.getByteBuffer() (see also comment there). - return Action.EXECUTING; + return Action.SCHEDULED; } @Override protected void completed() { - // will never be called as process always returns EXECUTING or IDLE + // will never be called as process always returns SCHEDULED or IDLE throw new IllegalStateException(); } diff --git a/jetty-util/src/main/java/org/eclipse/jetty/util/IteratingCallback.java b/jetty-util/src/main/java/org/eclipse/jetty/util/IteratingCallback.java index 198aaf08f47..d063f32eafa 100644 --- a/jetty-util/src/main/java/org/eclipse/jetty/util/IteratingCallback.java +++ b/jetty-util/src/main/java/org/eclipse/jetty/util/IteratingCallback.java @@ -67,7 +67,7 @@ public abstract class IteratingCallback implements Callback * a sub task, where the execution has started but the callback * may have not yet been invoked. */ - EXECUTING, + SCHEDULED, /** * Indicates that {@link #process()} has completed the overall job. */ @@ -88,7 +88,7 @@ public abstract class IteratingCallback implements Callback *