类 CronTrigger
java.lang.Object
cn.taketoday.scheduling.support.CronTrigger
- 所有已实现的接口:
Trigger
Trigger implementation for cron expressions.
Wraps a CronExpression.- 从以下版本开始:
- 4.0
- 作者:
- Juergen Hoeller, Arjen Poutsma
- 另请参阅:
-
构造器概要
构造器构造器说明CronTrigger(String expression) Build aCronTriggerfrom the pattern provided in the default time zone.CronTrigger(String expression, ZoneId zoneId) Build aCronTriggerfrom the pattern provided in the given time zone.CronTrigger(String expression, TimeZone timeZone) Build aCronTriggerfrom the pattern provided in the given time zone. -
方法概要
修饰符和类型方法说明booleanReturn the cron pattern that this trigger has been built with.inthashCode()nextExecution(TriggerContext triggerContext) Determine the next execution time according to the given trigger context.toString()从接口继承的方法 cn.taketoday.scheduling.Trigger
nextExecutionTime
-
构造器详细资料
-
CronTrigger
Build aCronTriggerfrom the pattern provided in the default time zone.- 参数:
expression- a space-separated list of time fields, following cron expression conventions
-
CronTrigger
Build aCronTriggerfrom the pattern provided in the given time zone.- 参数:
expression- a space-separated list of time fields, following cron expression conventionstimeZone- a time zone in which the trigger times will be generated
-
CronTrigger
Build aCronTriggerfrom the pattern provided in the given time zone.- 参数:
expression- a space-separated list of time fields, following cron expression conventionszoneId- a time zone in which the trigger times will be generated- 从以下版本开始:
- 4.0
- 另请参阅:
-
-
方法详细资料
-
getExpression
Return the cron pattern that this trigger has been built with. -
nextExecution
Determine the next execution time according to the given trigger context.Next execution times are calculated based on the completion time of the previous execution; therefore, overlapping executions won't occur.
- 指定者:
nextExecution在接口中Trigger- 参数:
triggerContext- context object encapsulating last execution times and last completion time- 返回:
- the next execution time as defined by the trigger,
or
nullif the trigger won't fire anymore
-
equals
-
hashCode
public int hashCode() -
toString
-