/** * Schedule a Runnable to execute in the future. Event will be executed on Fiber thread. */ public Disposable schedule(Runnable command, long delay, TimeUnit unit) { return _scheduler.schedule(command, delay, unit); }
/** * Schedule recurring event. Event will be fired on fiber thread. */ public Disposable scheduleAtFixedRate(Runnable command, long initialDelay, long delay, TimeUnit unit) { return _scheduler.scheduleAtFixedRate(command, initialDelay, delay, unit); }
public Disposable scheduleWithFixedDelay(Runnable command, long initialDelay, long delay, TimeUnit unit) { return _scheduler.scheduleWithFixedDelay(command, initialDelay, delay, unit); }
public void dispose() { _scheduler.dispose(); _queue.dispose(); }
public void dispose() { _scheduler.dispose(); _queue.dispose(); }
/** * Schedule a Runnable to execute in the future. Event will be executed on Fiber thread. */ public Disposable schedule(Runnable command, long delay, TimeUnit unit) { return _scheduler.schedule(command, delay, unit); }
/** * Schedule recurring event. Event will be fired on fiber thread. */ public Disposable scheduleAtFixedRate(Runnable command, long initialDelay, long delay, TimeUnit unit) { return _scheduler.scheduleAtFixedRate(command, initialDelay, delay, unit); }
public Disposable scheduleWithFixedDelay(Runnable command, long initialDelay, long delay, TimeUnit unit) { return _scheduler.scheduleWithFixedDelay(command, initialDelay, delay, unit); }
public void reset() { checkState(started); future.ifPresent(Disposable::dispose); future = Optional.of(scheduler.schedule(action, timeout, MILLISECONDS)); }