/** * 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); }
/** * 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); }
/** * 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); }