public class PeriodicExecutorImpl extends Object implements PeriodicExecutor, Runnable
Constructor and Description |
---|
PeriodicExecutorImpl(ParallelExecutor parallelExecutor,
org.slf4j.Logger logger) |
Modifier and Type | Method and Description |
---|---|
PeriodicJob |
addJob(Schedule schedule,
String name,
Runnable job)
Adds a job to be executed.
|
void |
run() |
void |
start(RegistryShutdownHub hub) |
public PeriodicExecutorImpl(ParallelExecutor parallelExecutor, org.slf4j.Logger logger)
@PostInjection public void start(RegistryShutdownHub hub)
public PeriodicJob addJob(Schedule schedule, String name, Runnable job)
PeriodicExecutor
ParallelExecutor.invoke(org.apache.tapestry5.ioc.Invokable)
), as determined by the schedule.addJob
in interface PeriodicExecutor
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${project.version} - Copyright © 2003-2015 The Apache Software Foundation.