Closed as not planned
Description
Kevin Conaway opened SPR-13407 and commented
Juergen Hoeller what are your thoughts on adding listenable support for the TaskScheduler interface? I'm envisioning an AsyncListenableTaskScheduler interface that has scheduleListenableXXX methods that mirror those in TaskScheduler (similar to AsyncListenableTaskExecutor -> TaskExecutor)
The use case here is to register callbacks that fire for every execution of the scheduled task.
I'm happy to submit a PR for this if you think it would be worthwhile. I have written an implementation for for ListenableScheduledFuture<?> scheduleListenable(Runnable task, Trigger trigger); that we're using here but I would like to get a full featured version in to core if possible
Affects: 4.2 GA
Issue Links:
- Allow CronTrigger to resume from specified timestamp [SPR-14909] #19475 Allow ReschedulingRunnable to receive a TriggerContext on creation