DeferredResultMethodReturnValueHandler supports
ListenableFuture return values via an adapter mechanism.@Deprecated
public class ListenableFutureReturnValueHandler
extends java.lang.Object
implements org.springframework.web.method.support.AsyncHandlerMethodReturnValueHandler
ListenableFuture.| Constructor and Description |
|---|
ListenableFutureReturnValueHandler()
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 ListenableFutureReturnValueHandler()
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