Support ListenableFuture on @RequestMapping methods

Issue: SPR-11695
This commit is contained in:
Rossen Stoyanchev
2014-05-01 12:28:59 -04:00
parent 0d2aa51576
commit 676282c66e
5 changed files with 113 additions and 1 deletions

View File

@@ -204,6 +204,9 @@ import java.util.concurrent.Callable;
* <li>A {@link org.springframework.web.context.request.async.DeferredResult}
* which the application uses to produce a return value in a separate
* thread of its own choosing, as an alternative to returning a Callable.
* <li>A {@link org.springframework.util.concurrent.ListenableFuture}
* which the application uses to produce a return value in a separate
* thread of its own choosing, as an alternative to returning a Callable.
* <li>{@code void} if the method handles the response itself (by
* writing the response content directly, declaring an argument of type
* {@link javax.servlet.ServletResponse} / {@link javax.servlet.http.HttpServletResponse}