Announcement Announcement Module
Collapse
No announcement yet.
Polling features Page Title Module
Move Remove Collapse
X
Conversation Detail Module
Collapse
  • Filter
  • Time
  • Show
Clear All
new posts

  • Polling features

    I've been looking at converting some of our code to use Spring Integration, and we have a lot of timed jobs that operate in intervals and poll data. The @Polled annotation seems nice for this, except that some of our code relies on the ability to express more complicated job scheduling functionality than just "invoke this every 10 seconds".

    I know I could create a manual message endpoint, and trigger it from Quartz, but it would be nice to keep everything inside the nice clean world of annotations.

    Has there been any thought given to supporting more "Quartz-like" job control features, such as the ability to specify not just how often a job runs, but when it starts, and ends, etc.?

    Also, I see that there is a "initialDelay" property on PollingSourceAdapter, which seems like it would solve some of my concerns, but the @Polled annotation provides no way to set it.
    Last edited by ryandaum; Feb 8th, 2008, 10:31 AM.

  • #2
    Cron-based scheduling support will be added in the 1.0 timeframe. I just added a Jira issue if you would like to track it: http://jira.springframework.org/browse/INT-103

    The Schedule and MessagingTaskScheduler interfaces were designed with this specific extension in mind, but the current implementations (PollingSchedule and SimpleMessagingTaskScheduler) only support the interval-based polling.

    I have also added a Jira issue (for M2) to include the other PollingSchedule properties (initialDelay and fixedRate) to the annotation: http://jira.springframework.org/browse/INT-104

    Thanks for pointing that out.

    -Mark

    Comment

    Working...
    X