public interface SchedulingContext
Modifier and Type | Method and Description |
---|---|
Date |
getCurrentFireDate()
actual fire time of the current Task run
|
Map<String,?> |
getDataMap()
The task data map.
|
Date |
getNextFireDate()
fire time of the next Task run
|
Date |
getPreviousFireDate()
fire time of the previous Task run
|
Date |
getScheduledFireDate()
actual scheduled time of the current Task run
|
String |
getTaskName()
TaskName is either :
provided through (@Scheduled) annotation
generated though (@ScheduledTaskBuilder) instantiation
provided through (@ScheduledTaskBuilder) DSL withTaskName method
|
long |
getTaskRuntime()
The amount of time the Task ran for (in milliseconds).
|
Date |
getTriggerEndDate()
Trigger planned end time
|
Date |
getTriggerFinalFireDate()
Trigger planned date of final run
|
String |
getTriggerName()
triggerName is either :
provided through (@Scheduled) annotation
generated though (@ScheduledTaskBuilder) instantiation
provided through (@ScheduledTaskBuilder) DSL withTriggerName method
|
int |
getTriggerPriority()
The Trigger's priority.
|
int |
getTriggerRefireCount()
Number of times the Trigger has been Task refired
|
Date |
getTriggerStartDate()
Trigger planned start time
|
boolean |
isRequestRecovery()
RequestRecovery notify the Scheduler whether or not the Task should be re-executed if a recovery or fail-over
situation is encountered.
|
boolean |
isStoreDurably()
Whether or not the Task should remain stored after it is
orphaned (no Triggers point to it).
|
<T> T |
unwrap(Class<T> toClass)
Allow to access to unwrap the context to an implementation-specific class.
|
String getTaskName()
boolean isRequestRecovery()
boolean isStoreDurably()
String getTriggerName()
int getTriggerPriority()
Date getCurrentFireDate()
Date getPreviousFireDate()
Date getNextFireDate()
long getTaskRuntime()
Date getScheduledFireDate()
int getTriggerRefireCount()
Date getTriggerFinalFireDate()
Date getTriggerEndDate()
Date getTriggerStartDate()
<T> T unwrap(Class<T> toClass)
T
- the implementation-specific type.toClass
- the implementation-specific class to access to.SeedException
- if the class cannot be unwrapped.Copyright © 2013-2018–2019 SeedStack. All rights reserved.