Provide access to SimpleTriggerFactoryBean property startTime [SPR-10940] #15568
Labels
status: backported
An issue that has been backported to maintenance branches
type: enhancement
A general enhancement
Milestone
Gerrit Hübbers opened SPR-10940 and commented
Currently,
org.springframework.scheduling.quartz.SimpleTriggerFactoryBean
doesn't support access to thestartTime
property. (seehttps://github.com/spring-projects/spring-framework/blob/master/spring-context-support/src/main/java/org/springframework/scheduling/quartz/SimpleTriggerFactoryBean.java).
startTime
is a useful property, as it allows specifying a precise instance in time when theSimpleTrigger
shall fire for the first time.As a workaround to emulate this property, a user can awkwardly calculate an offset from the current system time and then set the
startDelay
property. This workaround is also causing unneccessary scheduling imprecision.Therefore, it is beneficial to provide direct access to the
startTime
property.Affects: 3.2.4, 4.0 GA
Issue Links:
Referenced from: commits dbfe68a, ab6c6b1, b228a06
Backported to: 3.2.7
The text was updated successfully, but these errors were encountered: