private class ServletInvocableHandlerMethod.ConcurrentResultHandlerMethod extends ServletInvocableHandlerMethod
ServletInvocableHandlerMethod
that uses a
simple Callable
instead of the original controller as the handler in
order to return the fixed (concurrent) result value given to it. Effectively
"resumes" processing with the asynchronously produced return value.HandlerMethod.HandlerMethodParameter
Modifier and Type | Field and Description |
---|---|
private MethodParameter |
returnType |
logger
Constructor and Description |
---|
ConcurrentResultHandlerMethod(java.lang.Object result,
ServletInvocableHandlerMethod.ConcurrentResultMethodParameter returnType) |
Modifier and Type | Method and Description |
---|---|
java.lang.Class<?> |
getBeanType()
Bridge to actual controller type-level annotations.
|
<A extends java.lang.annotation.Annotation> |
getMethodAnnotation(java.lang.Class<A> annotationType)
Bridge to controller method-level annotations.
|
MethodParameter |
getReturnValueType(java.lang.Object returnValue)
Bridge to actual return value or generic type within the declared
async return type, e.g.
|
invokeAndHandle, setHandlerMethodReturnValueHandlers, wrapConcurrentResult
doInvoke, getDetailedErrorMessage, invokeForRequest, setDataBinderFactory, setHandlerMethodArgumentResolvers, setParameterNameDiscoverer
createWithResolvedBean, equals, getBean, getBridgedMethod, getMethod, getMethodParameters, getResolvedFromHandlerMethod, getReturnType, hashCode, isVoid, toString
private final MethodParameter returnType
public ConcurrentResultHandlerMethod(java.lang.Object result, ServletInvocableHandlerMethod.ConcurrentResultMethodParameter returnType)
public java.lang.Class<?> getBeanType()
getBeanType
in class HandlerMethod
public MethodParameter getReturnValueType(java.lang.Object returnValue)
DeferredResult<Foo>
.getReturnValueType
in class HandlerMethod
public <A extends java.lang.annotation.Annotation> A getMethodAnnotation(java.lang.Class<A> annotationType)
getMethodAnnotation
in class HandlerMethod
annotationType
- the type of annotation to introspect the method for.null
if none foundAnnotatedElementUtils.findMergedAnnotation(java.lang.reflect.AnnotatedElement, java.lang.Class<A>)