Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

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

Closed
spring-projects-issues opened this issue Sep 26, 2013 · 1 comment
Assignees
Labels
status: backported type: enhancement
Milestone

Comments

@spring-projects-issues
Copy link
Collaborator

@spring-projects-issues spring-projects-issues commented Sep 26, 2013

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:

  • #14405 CronTriggerFactoryBean doesn't allow calendar name and description to be specified

Referenced from: commits dbfe68a, ab6c6b1, b228a06

Backported to: 3.2.7

@spring-projects-issues
Copy link
Collaborator Author

@spring-projects-issues spring-projects-issues commented Jan 5, 2014

Juergen Hoeller commented

I've added a corresponding setStartTime method to SimpleTriggerFactoryBean as well as CronTriggerFactoryBean, analogous to the inherited setStartTime method on SimpleTriggerBean and CronTriggerBean. To be released in 4.0.1 and 3.2.7.

Juergen

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
status: backported type: enhancement
Projects
None yet
Development

No branches or pull requests

2 participants