Class PeriodicExecutorImpl
java.lang.Object
org.apache.tapestry5.ioc.internal.services.cron.PeriodicExecutorImpl
- All Implemented Interfaces:
Runnable,PeriodicExecutor
-
Constructor Summary
ConstructorsConstructorDescriptionPeriodicExecutorImpl(ParallelExecutor parallelExecutor, org.slf4j.Logger logger) -
Method Summary
Modifier and TypeMethodDescriptionAdds a job to be executed.voidinit()Initializes this service.voidrun()voidstart(RegistryShutdownHub hub)
-
Constructor Details
-
PeriodicExecutorImpl
-
-
Method Details
-
start
-
init
Description copied from interface:PeriodicExecutorInitializes this service. Never call this method direclty. It's intended for internal Tapestry-IoC usage only.- Specified by:
initin interfacePeriodicExecutor
-
addJob
Description copied from interface:PeriodicExecutorAdds a job to be executed. The job is executed in a thread pool (viaParallelExecutor.invoke(org.apache.tapestry5.ioc.Invokable)), as determined by the schedule.- Specified by:
addJobin interfacePeriodicExecutor- Parameters:
schedule- defines when the job will next executename- a name used in debugging output related to the jobjob- a Runnable object that represents the work to be done- Returns:
- a PeriodicJob that can be used to query when the job executes, or to cancel its execution
-
run
-