public class PeriodicExecutorImpl extends java.lang.Object implements PeriodicExecutor, java.lang.Runnable
Constructor and Description |
---|
PeriodicExecutorImpl(ParallelExecutor parallelExecutor,
org.slf4j.Logger logger) |
Modifier and Type | Method and Description |
---|---|
PeriodicJob |
addJob(Schedule schedule,
java.lang.String name,
java.lang.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, java.lang.String name, java.lang.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 donepublic void run()
run
in interface java.lang.Runnable
${project.version} - Copyright © 2003-2015 The Apache Software Foundation.