Example #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);
 }
Example #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);
 }
Example #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);
 }