Example usage for java.util.concurrent RunnableScheduledFuture run

List of usage examples for java.util.concurrent RunnableScheduledFuture run

Introduction

In this page you can find the example usage for java.util.concurrent RunnableScheduledFuture run.

Prototype

void run();

Source Link

Document

Sets this Future to the result of its computation unless it has been cancelled.

Usage

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