org.apache.servicemix.common.scheduler
Class SchedulerTask

java.lang.Object
  extended by org.apache.servicemix.common.scheduler.SchedulerTask
All Implemented Interfaces:
java.lang.Runnable

public abstract class SchedulerTask
extends java.lang.Object
implements java.lang.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 java.lang.Runnable

cancel

public boolean cancel()

Cancels task.

Returns:
true if task already scheduled

scheduledExecutionTime

public long scheduledExecutionTime()


Copyright © 2005-2012 FuseSource. All Rights Reserved.