DeferredResult,
org.springframework.util.concurrent.ListenableFuture , and
CompletionStage.
| Access | Constructor and Description |
|---|---|
| public |
| Modifier and Type | Method and Description |
|---|---|
| private DeferredResult | |
| private DeferredResult | adaptListenableFuture(ListenableFuture<?> future)
References Deprecated
ListenableFuture is deprecated or references (maybe indirectly) at least one deprecated element.
|
| public void | handleReturnValue(Object
the value returned from the handler method returnValue, MethodParameter the type of the return value. This type must have
previously been passed to returnType, ModelAndViewContainer supportsReturnType which must
have returned true.the ModelAndViewContainer for the current request mavContainer, NativeWebRequest the current request webRequest)Implements org. Handle the given return value by adding attributes to the model and
setting a view or setting the
|
| public boolean | supportsReturnType(MethodParameter
the method return type to check returnType)Implements org. Whether the given method return type is supported by this handler. |
| DeferredResultMethodReturnValueHandler | back to summary |
|---|---|
| public DeferredResultMethodReturnValueHandler() | |
| adaptCompletionStage | back to summary |
|---|---|
| private DeferredResult | |
| adaptListenableFuture | back to summary |
|---|---|
| private DeferredResult References Deprecated
See corresponding docs for further information.
| |
| handleReturnValue | back to summary |
|---|---|
| public void handleReturnValue(Object returnValue, MethodParameter returnType, ModelAndViewContainer mavContainer, NativeWebRequest webRequest) throws Exception Implements org. Doc from org. Handle the given return value by adding attributes to the model and
setting a view or setting the
| |
| supportsReturnType | back to summary |
|---|---|
| public boolean supportsReturnType(MethodParameter returnType) Implements org. Doc from org. Whether the given method return type is supported by this handler.
| |