public class TriggerTask extends Task
Trigger.nextExecutionTime(org.springframework.scheduling.TriggerContext)
,
ScheduledTaskRegistrar.setTriggerTasksList(java.util.List)
,
TaskScheduler.schedule(Runnable, Trigger)
Constructor and Description |
---|
TriggerTask(java.lang.Runnable runnable,
Trigger trigger)
Create a new
TriggerTask . |
Modifier and Type | Method and Description |
---|---|
Trigger |
getTrigger() |
getRunnable
public TriggerTask(java.lang.Runnable runnable, Trigger trigger)
TriggerTask
.runnable
- the underlying task to executetrigger
- specifies when the task should be executedpublic Trigger getTrigger()