Mercurial Hosting > luan
comparison src/org/eclipse/jetty/server/nio/SelectChannelConnector.java @ 937:0541b6034003
remove Continuation
author | Franklin Schmidt <fschmidt@gmail.com> |
---|---|
date | Sun, 09 Oct 2016 21:41:28 -0600 |
parents | 54308d65265a |
children | f5aefdc4a81a |
comparison
equal
deleted
inserted
replaced
936:237ace6e8bc2 | 937:0541b6034003 |
---|---|
23 import java.net.Socket; | 23 import java.net.Socket; |
24 import java.nio.channels.SelectionKey; | 24 import java.nio.channels.SelectionKey; |
25 import java.nio.channels.ServerSocketChannel; | 25 import java.nio.channels.ServerSocketChannel; |
26 import java.nio.channels.SocketChannel; | 26 import java.nio.channels.SocketChannel; |
27 | 27 |
28 import org.eclipse.jetty.continuation.Continuation; | |
29 import org.eclipse.jetty.io.AsyncEndPoint; | 28 import org.eclipse.jetty.io.AsyncEndPoint; |
30 import org.eclipse.jetty.io.ConnectedEndPoint; | 29 import org.eclipse.jetty.io.ConnectedEndPoint; |
31 import org.eclipse.jetty.io.Connection; | 30 import org.eclipse.jetty.io.Connection; |
32 import org.eclipse.jetty.io.EndPoint; | 31 import org.eclipse.jetty.io.EndPoint; |
33 import org.eclipse.jetty.io.nio.AsyncConnection; | 32 import org.eclipse.jetty.io.nio.AsyncConnection; |
48 * simulate blocking for the servlet API, and any unflushed content at the end of request handling | 47 * simulate blocking for the servlet API, and any unflushed content at the end of request handling |
49 * is written asynchronously. | 48 * is written asynchronously. |
50 * </p> | 49 * </p> |
51 * <p> | 50 * <p> |
52 * This connector is best used when there are a many connections that have idle periods. | 51 * This connector is best used when there are a many connections that have idle periods. |
53 * </p> | |
54 * <p> | |
55 * When used with {@link org.eclipse.jetty.continuation.Continuation}, threadless waits are supported. | |
56 * If a filter or servlet returns after calling {@link Continuation#suspend()} or when a | |
57 * runtime exception is thrown from a call to {@link Continuation#undispatch()}, Jetty will | |
58 * will not send a response to the client. Instead the thread is released and the Continuation is | |
59 * placed on the timer queue. If the Continuation timeout expires, or it's | |
60 * resume method is called, then the request is again allocated a thread and the request is retried. | |
61 * The limitation of this approach is that request content is not available on the retried request, | |
62 * thus if possible it should be read after the continuation or saved as a request attribute or as the | |
63 * associated object of the Continuation instance. | |
64 * </p> | 52 * </p> |
65 * | 53 * |
66 * @org.apache.xbean.XBean element="nioConnector" description="Creates an NIO based socket connector" | 54 * @org.apache.xbean.XBean element="nioConnector" description="Creates an NIO based socket connector" |
67 */ | 55 */ |
68 public class SelectChannelConnector extends Connector | 56 public class SelectChannelConnector extends Connector |