DeferredResultMethodReturnValueHandler
supports
CompletionStage return values via an adapter mechanism.@Deprecated @UsesJava8 public class CompletionStageReturnValueHandler extends 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(Object returnValue,
org.springframework.core.MethodParameter returnType,
org.springframework.web.method.support.ModelAndViewContainer mavContainer,
org.springframework.web.context.request.NativeWebRequest webRequest)
Deprecated.
|
boolean |
isAsyncReturnValue(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.HandlerMethodReturnValueHandler
public boolean isAsyncReturnValue(Object returnValue, org.springframework.core.MethodParameter returnType)
isAsyncReturnValue
in interface org.springframework.web.method.support.AsyncHandlerMethodReturnValueHandler
public void handleReturnValue(Object returnValue, org.springframework.core.MethodParameter returnType, org.springframework.web.method.support.ModelAndViewContainer mavContainer, org.springframework.web.context.request.NativeWebRequest webRequest) throws Exception
handleReturnValue
in interface org.springframework.web.method.support.HandlerMethodReturnValueHandler
Exception