Пример #1
0
 /**
  * Schedule the task on the given timeout. The task exiry will be called after the timeout
  * duration.
  *
  * @param timer
  */
 public void schedule(Timeout timer, long delay) {
   timer.schedule(this, delay);
 }
Пример #2
0
 /**
  * Reschedule the task on the current timeout. The task timeout is rescheduled as if it had been
  * cancelled and scheduled on the current timeout.
  */
 public void reschedule() {
   Timeout timeout = _timeout;
   if (timeout != null) timeout.schedule(this, _delay);
 }
Пример #3
0
 /**
  * Schedule the task on the given timeout. The task exiry will be called after the timeout
  * duration.
  *
  * @param timer
  */
 public void schedule(Timeout timer) {
   timer.schedule(this);
 }