Skip to content

Provide access to SimpleTriggerFactoryBean property startTime [SPR-10940] #15568

Closed
@spring-projects-issues

Description

@spring-projects-issues

Gerrit Hübbers opened SPR-10940 and commented

Currently, org.springframework.scheduling.quartz.SimpleTriggerFactoryBean doesn't support access to the startTime property. (see
https://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 the SimpleTrigger 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

Metadata

Metadata

Assignees

Labels

status: backportedAn issue that has been backported to maintenance branchestype: enhancementA general enhancement

Type

No type

Projects

No projects

Milestone

Relationships

None yet

Development

No branches or pull requests

Issue actions