Skip to content

Add ListenableScheduledFuture support to TaskScheduler [SPR-13407] #17987

Closed as not planned
@spring-projects-issues

Description

@spring-projects-issues

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:

Metadata

Metadata

Assignees

No one assigned

    Labels

    in: coreIssues in core modules (aop, beans, core, context, expression)status: supersededAn issue that has been superseded by anothertype: enhancementA general enhancement

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions