/** * {@inheritDoc} * <p/> * Schedules a runnable which will run repeatedly after the specified initial * delay, with the specified delay between the completion of one run and * the start of the next. * @since org.openide.util 8.2 */ @Override public ScheduledFuture<?> scheduleWithFixedDelay(Runnable command, long initialDelay, long delay, TimeUnit unit) { return scheduleFixed(command, initialDelay, delay, unit, true); }
/** * {@inheritDoc} * <p/> * Schedules a runnable which will run with a given frequency, regardless * of how long execution takes, with the exception that if execution takes * longer than the specified delay, execution will be delayed but will * never be run on two threads concurrently. * @since org.openide.util 8.2 */ @Override public ScheduledFuture<?> scheduleAtFixedRate(Runnable command, long initialDelay, long period, TimeUnit unit) { return scheduleFixed(command, initialDelay, period, unit, false); }
/** * {@inheritDoc} * <p/> * Schedules a runnable which will run repeatedly after the specified initial * delay, with the specified delay between the completion of one run and * the start of the next. * @since org.openide.util 8.2 */ @Override public ScheduledFuture<?> scheduleWithFixedDelay(Runnable command, long initialDelay, long delay, TimeUnit unit) { return scheduleFixed(command, initialDelay, delay, unit, true); }
/** * {@inheritDoc} * <p/> * Schedules a runnable which will run with a given frequency, regardless * of how long execution takes, with the exception that if execution takes * longer than the specified delay, execution will be delayed but will * never be run on two threads concurrently. * @since org.openide.util 8.2 */ @Override public ScheduledFuture<?> scheduleAtFixedRate(Runnable command, long initialDelay, long period, TimeUnit unit) { return scheduleFixed(command, initialDelay, period, unit, false); }