Mercurial Hosting > luan
comparison src/org/eclipse/jetty/io/nio/SelectChannelEndPoint.java @ 969:0650077fcd6c
remove SelectChannelEndPoint.setConnection()
author | Franklin Schmidt <fschmidt@gmail.com> |
---|---|
date | Fri, 14 Oct 2016 02:44:02 -0600 |
parents | 0d20943cfea2 |
children | 5ee36654b383 |
comparison
equal
deleted
inserted
replaced
968:0d20943cfea2 | 969:0650077fcd6c |
---|---|
54 * The connection instance is the handler for any IO activity on the endpoint. | 54 * The connection instance is the handler for any IO activity on the endpoint. |
55 * There is a different type of connection for HTTP, AJP, WebSocket and | 55 * There is a different type of connection for HTTP, AJP, WebSocket and |
56 * ProxyConnect. The connection may change for an SCEP as it is upgraded | 56 * ProxyConnect. The connection may change for an SCEP as it is upgraded |
57 * from HTTP to proxy connect or websocket. | 57 * from HTTP to proxy connect or websocket. |
58 */ | 58 */ |
59 private volatile AsyncConnection _connection; | 59 private final AsyncConnection _connection; |
60 /* | 60 /* |
61 private static final int STATE_NEEDS_DISPATCH = -1; | 61 private static final int STATE_NEEDS_DISPATCH = -1; |
62 private static final int STATE_UNDISPATCHED = 0; | 62 private static final int STATE_UNDISPATCHED = 0; |
63 private static final int STATE_DISPATCHED = 1; | 63 private static final int STATE_DISPATCHED = 1; |
64 private int _state; | 64 private int _state; |
81 { | 81 { |
82 super(channel, maxIdleTime); | 82 super(channel, maxIdleTime); |
83 | 83 |
84 _manager = manager; | 84 _manager = manager; |
85 _key = key; | 85 _key = key; |
86 } | 86 _connection = manager.newConnection(channel,this); |
87 | |
88 public void setConnection(Connection connection) | |
89 { | |
90 _connection = (AsyncConnection)connection; | |
91 } | 87 } |
92 | 88 |
93 /* ------------------------------------------------------------ */ | 89 /* ------------------------------------------------------------ */ |
94 /** Called by selectSet to schedule handling | 90 /** Called by selectSet to schedule handling |
95 * | 91 * |