org.jppf.scheduling
Class JPPFScheduleHandler.ScheduleHandlerTask

java.lang.Object
  extended by java.util.TimerTask
      extended by org.jppf.scheduling.JPPFScheduleHandler.ScheduleHandlerTask
All Implemented Interfaces:
Runnable
Enclosing class:
JPPFScheduleHandler

public class JPPFScheduleHandler.ScheduleHandlerTask
extends TimerTask

Timer task that triggers an action when the corresponding schedule date is reached.


Constructor Summary
JPPFScheduleHandler.ScheduleHandlerTask(Object key, Runnable action)
          Timer task wrapping a scheduled action.
 
Method Summary
 void run()
          Check if the scheduled date has been reached and execute the corresponding action
 
Methods inherited from class java.util.TimerTask
cancel, scheduledExecutionTime
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Constructor Detail

JPPFScheduleHandler.ScheduleHandlerTask

public JPPFScheduleHandler.ScheduleHandlerTask(Object key,
                                               Runnable action)
Timer task wrapping a scheduled action.

Parameters:
key - the key associated with the action.
action - the action to perform when the schedule date is reached.
Method Detail

run

public void run()
Check if the scheduled date has been reached and execute the corresponding action

Specified by:
run in interface Runnable
Specified by:
run in class TimerTask
See Also:
TimerTask.run()


Copyright © 2005-2010 JPPF Team.