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.AsyncHandlerMethodReturnValueHandler
public boolean supportsReturnType(org.springframework.core.MethodParameter returnType)
supportsReturnType
in interface org.springframework.web.method.support.HandlerMethodReturnValueHandler
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
Copyright © 2018 Pivotal Software, Inc.. All rights reserved.