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

remove scheduleTimeout() and cancelTimeout()
author Franklin Schmidt <fschmidt@gmail.com>
date Tue, 11 Oct 2016 00:13:30 -0600
parents 54308d65265a
children c157a786ed0b
comparison
equal deleted inserted replaced
939:8db5996c8c89 940:b77d631b9e28
730 public long getNow() 730 public long getNow()
731 { 731 {
732 return _timeout.getNow(); 732 return _timeout.getNow();
733 } 733 }
734 734
735 /* ------------------------------------------------------------ */
736 /**
737 * @param task The task to timeout. If it implements Runnable, then
738 * expired will be called from a dispatched thread.
739 *
740 * @param timeoutMs
741 */
742 public void scheduleTimeout(Timeout.Task task, long timeoutMs)
743 {
744 if (!(task instanceof Runnable))
745 throw new IllegalArgumentException("!Runnable");
746 _timeout.schedule(task, timeoutMs);
747 }
748
749 public void cancelTimeout(Timeout.Task task)
750 {
751 task.cancel();
752 }
753
754 public void wakeup() 735 public void wakeup()
755 { 736 {
756 try 737 try
757 { 738 {
758 Selector selector = _selector; 739 Selector selector = _selector;