public class FluxReturnValueHandler extends Object implements org.springframework.web.method.support.AsyncHandlerMethodReturnValueHandler
AsyncHandlerMethodReturnValueHandler that handles Flux
return types.| Constructor and Description |
|---|
FluxReturnValueHandler(FunctionInspector inspector,
List<org.springframework.http.converter.HttpMessageConverter<?>> messageConverters) |
| 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) |
boolean |
isAsyncReturnValue(Object returnValue,
org.springframework.core.MethodParameter returnType) |
void |
setTimeout(long timeout)
Timeout for clients.
|
boolean |
supportsReturnType(org.springframework.core.MethodParameter returnType) |
public FluxReturnValueHandler(FunctionInspector inspector, List<org.springframework.http.converter.HttpMessageConverter<?>> messageConverters)
public void setTimeout(long timeout)
timeout - the timeout to setpublic boolean isAsyncReturnValue(Object returnValue, org.springframework.core.MethodParameter returnType)
isAsyncReturnValue in interface org.springframework.web.method.support.AsyncHandlerMethodReturnValueHandlerpublic boolean supportsReturnType(org.springframework.core.MethodParameter returnType)
supportsReturnType in interface org.springframework.web.method.support.HandlerMethodReturnValueHandlerpublic 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.HandlerMethodReturnValueHandlerExceptionCopyright © 2019 Pivotal Software, Inc.. All rights reserved.