List of usage examples for java.util.concurrent RunnableScheduledFuture run
void run();
From source file:net.audumla.scheduler.quartz.QuartzScheduledExecutorService.java
@Override public <V> ScheduledFuture<V> schedule(Callable<V> callable, long delay, TimeUnit unit) { RunnableScheduledFuture<V> rf = new QuartzRunnableFuture<V>(callable, this.scheduler, delay, unit, generateName());// ww w .j a v a 2 s.co m rf.run(); return rf; }
From source file:net.audumla.scheduler.quartz.QuartzScheduledExecutorService.java
@Override public ScheduledFuture<?> scheduleWithFixedDelay(Runnable command, long initialDelay, long delay, TimeUnit unit) {// w w w. ja v a 2s . c o m RunnableScheduledFuture<Object> rf = new QuartzRunnableFuture<Object>(command, null, this.scheduler, delay, unit, generateName()); rf.run(); return rf; }
From source file:net.audumla.scheduler.quartz.QuartzScheduledExecutorService.java
@Override public ScheduledFuture<?> scheduleAtFixedRate(Runnable command, long initialDelay, long period, TimeUnit unit) { RunnableScheduledFuture<Object> rf = new QuartzRunnableFuture<Object>(command, null, this.scheduler, initialDelay, unit, generateName()); rf.run(); return rf;/*from w ww .ja v a 2 s .c om*/ }