org.jboss.varia.scheduler
Interface Schedulable

All Known Implementing Classes:
SchedulableExample (src) , Scheduler.SchedulableExample (src) , TestSchedulable (src)

public interface Schedulable

This interface defines the manageable interface for a Scheduler Service allowing the client to create a Schedulable instance which is then run by this service at given times.


Method Summary
 void perform(java.util.Date pTimeOfCall, long pRemainingRepetitions)
          This method is called from the Scheduler Service
 

Method Detail

perform

public void perform(java.util.Date pTimeOfCall,
                    long pRemainingRepetitions)
This method is called from the Scheduler Service

Parameters:
pTimeOfCall - Date/Time of the scheduled call
pRemainingRepetitions - Number of the remaining repetitions which is -1 if there is an unlimited number of repetitions.