Versions Compared

Key

  • This line was added.
  • This line was removed.
  • Formatting was changed.

This feature is work-in-progress, and available in 1.7.0-SNAPSHOT. Requires a Servlet3+ container.

Description

Async Actions allows handler methods to behave in an asynchronous (Servlet3) fashion. This is mostly used for performance reasons, when a Stripes Action has to can connect to external services (e.g. a web service) in a non-blocking fashion. 

...

They return void, and accept a single argument of type AsyncResponse. Completion of the async request processing must be done

When handling such events, Stripes will start the asynchronous cycle, and let you complete by invoking one of the asyncResponse.complete() variants.

...