Code example for ScheduledThreadPoolExecutor

Methods: scheduleAtFixedRate

0
    } 
 
    @Override 
    public ScheduledFuture<?> scheduleAtFixedRate(final Runnable runnable,
            final int _millisecondDelay) {
        return scheduledThreadPoolExecutor.scheduleAtFixedRate(runnable,
                _millisecondDelay, _millisecondDelay, TimeUnit.MILLISECONDS);
    } 
 
    @Override 
    public void close() { 
        scheduledThreadPoolExecutor.shutdown();
    } 
 
    /* (non-Javadoc) 
     * @see org.agilewiki.jactor2.core.plant.PlantScheduler#cancel(java.lang.Object) 
     */ 
    @Override 
    public void cancel(final Object task) { 
        if (task == null) {