DeferredResultMethodReturnValueHandler supports
CompletionStage return values via an adapter mechanism.@Deprecated
@UsesJava8
public class CompletionStageReturnValueHandler
extends java.lang.Object
implements org.springframework.web.method.support.AsyncHandlerMethodReturnValueHandler
CompletionStage (implemented by
CompletableFuture for example).| Constructor and Description |
|---|
CompletionStageReturnValueHandler()
Deprecated.
|
| Modifier and Type | Method and Description |
|---|---|
void |
handleReturnValue(java.lang.Object returnValue,
org.springframework.core.MethodParameter returnType,
org.springframework.web.method.support.ModelAndViewContainer mavContainer,
org.springframework.web.context.request.NativeWebRequest webRequest)
Deprecated.
|
boolean |
isAsyncReturnValue(java.lang.Object returnValue,
org.springframework.core.MethodParameter returnType)
Deprecated.
|
boolean |
supportsReturnType(org.springframework.core.MethodParameter returnType)
Deprecated.
|
public CompletionStageReturnValueHandler()
public boolean supportsReturnType(org.springframework.core.MethodParameter returnType)
supportsReturnType in interface org.springframework.web.method.support.HandlerMethodReturnValueHandlerpublic boolean isAsyncReturnValue(java.lang.Object returnValue,
org.springframework.core.MethodParameter returnType)
isAsyncReturnValue in interface org.springframework.web.method.support.AsyncHandlerMethodReturnValueHandlerpublic void handleReturnValue(java.lang.Object returnValue,
org.springframework.core.MethodParameter returnType,
org.springframework.web.method.support.ModelAndViewContainer mavContainer,
org.springframework.web.context.request.NativeWebRequest webRequest)
throws java.lang.Exception
handleReturnValue in interface org.springframework.web.method.support.HandlerMethodReturnValueHandlerjava.lang.Exception