public class TriggerTask extends Task
ScheduledTaskRegistrar.addTriggerTask(TriggerTask)
,
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()
Return the associated trigger.
|
getRunnable, toString
public TriggerTask(java.lang.Runnable runnable, Trigger trigger)
TriggerTask
.runnable
- the underlying task to executetrigger
- specifies when the task should be executedpublic Trigger getTrigger()