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 |
init()
Initializes this service.
|
void |
run() |
void |
start(RegistryShutdownHub hub) |
public PeriodicExecutorImpl(ParallelExecutor parallelExecutor, org.slf4j.Logger logger)
@PostInjection public void start(RegistryShutdownHub hub)
public void init()
PeriodicExecutorinit in interface PeriodicExecutorpublic PeriodicJob addJob(Schedule schedule, String name, Runnable job)
PeriodicExecutorParallelExecutor.invoke(org.apache.tapestry5.ioc.Invokable)), as determined by the schedule.addJob in interface PeriodicExecutorschedule - 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 done5.6.4 - Copyright © 2003-2021 The Apache Software Foundation.