comparison src/org/eclipse/jetty/io/nio/SelectChannelEndPoint.java @ 940:b77d631b9e28

remove scheduleTimeout() and cancelTimeout()
author Franklin Schmidt <fschmidt@gmail.com>
date Tue, 11 Oct 2016 00:13:30 -0600
parents 65e0fba5861a
children 89fe80dfab2c
comparison
equal deleted inserted replaced
939:8db5996c8c89 940:b77d631b9e28
33 import org.eclipse.jetty.io.Connection; 33 import org.eclipse.jetty.io.Connection;
34 import org.eclipse.jetty.io.EofException; 34 import org.eclipse.jetty.io.EofException;
35 import org.eclipse.jetty.io.nio.SelectorManager.SelectSet; 35 import org.eclipse.jetty.io.nio.SelectorManager.SelectSet;
36 import org.slf4j.Logger; 36 import org.slf4j.Logger;
37 import org.slf4j.LoggerFactory; 37 import org.slf4j.LoggerFactory;
38 import org.eclipse.jetty.util.thread.Timeout.Task; 38
39 39
40 /* ------------------------------------------------------------ */ 40 /* ------------------------------------------------------------ */
41 /** 41 /**
42 * An Endpoint that can be scheduled by {@link SelectorManager}. 42 * An Endpoint that can be scheduled by {@link SelectorManager}.
43 */ 43 */
262 _state=STATE_UNDISPATCHED; 262 _state=STATE_UNDISPATCHED;
263 updateKey(); 263 updateKey();
264 return true; 264 return true;
265 } 265 }
266 } 266 }
267 }
268
269 /* ------------------------------------------------------------ */
270 public void cancelTimeout(Task task)
271 {
272 getSelectSet().cancelTimeout(task);
273 }
274
275 /* ------------------------------------------------------------ */
276 public void scheduleTimeout(Task task, long timeoutMs)
277 {
278 getSelectSet().scheduleTimeout(task,timeoutMs);
279 } 267 }
280 268
281 /* ------------------------------------------------------------ */ 269 /* ------------------------------------------------------------ */
282 public void setCheckForIdle(boolean check) 270 public void setCheckForIdle(boolean check)
283 { 271 {