Skip to content

Make result-data accessible in onCompletion Event in DeferredResult [SPR-10603] #15232

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

Closed
spring-projects-issues opened this issue May 29, 2013 · 1 comment
Assignees
Labels
type: enhancement A general enhancement
Milestone

Comments

@spring-projects-issues
Copy link
Collaborator

spring-projects-issues commented May 29, 2013

Kevin Armenat opened SPR-10603 and commented

I'm trying to access the Result-Data from DeferredResult in onCompletion callback to be able to store these Data in a Session-Scoped bean to cache the result for page reloads (since access to Session-Scoped beans seems only be possible from the web request thread and this callback will be fired from there).
It would be great to have a similar callback as "setResultHandler" has.


Issue Links:

Referenced from: commits c6ecaac

@spring-projects-issues
Copy link
Collaborator Author

Rossen Stoyanchev commented

I've added hasResult() and getResult() methods that should help. It's not as nice as getting it passed in but it should work.

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

No branches or pull requests

2 participants