org.apache.servicemix.components.varscheduler
Class SchedulerTask

java.lang.Object
  extended by org.apache.servicemix.components.varscheduler.SchedulerTask
All Implemented Interfaces:
Runnable

public abstract class SchedulerTask
extends Object
implements Runnable

A task run by a Scheduler.

Author:
George Gastaldi (gastaldi)

Constructor Summary
protected SchedulerTask()
           
 
Method Summary
 boolean cancel()
          Cancels task.
abstract  void run()
           
 long scheduledExecutionTime()
           
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Constructor Detail

SchedulerTask

protected SchedulerTask()
Method Detail

run

public abstract void run()
Specified by:
run in interface Runnable

cancel

public boolean cancel()
Cancels task.

Returns:
true if task already scheduled

scheduledExecutionTime

public long scheduledExecutionTime()


Copyright © 2005-2008 Apache Software Foundation. All Rights Reserved.