Announcement Announcement Module
No announcement yet.
How to get interim results of asynchronous methods Page Title Module
Move Remove Collapse
Conversation Detail Module
  • Filter
  • Time
  • Show
Clear All
new posts

  • How to get interim results of asynchronous methods

    Hi guys.

    This is my very first post and I'm glad to join the spring community.
    Let's get to the point.

    I have been working on a use case that should work as follows.

    1) The client of the application call method A
    2) Method A call method B (method B should run asynchronously)
    3) Method A waits for a certain time and gets the result of method B regardless of whether or not method B has completed. If method B has not completed, method A will retrieve the interim result and method B will continue running until it completes.
    4) Method A returns the (in-)complete result to the client.

    I would to know whether there is a feature in Spring to address this concern.
    3) is giving me headache, because I don't know how to get interim results of a method.

    Best regards.