Class HandlerAdapter
java.lang.Object
org.springframework.kafka.listener.adapter.HandlerAdapter
A wrapper for either an
InvocableHandlerMethod or
DelegatingInvocableHandler. All methods delegate to the
underlying handler.-
Constructor Summary
ConstructorsConstructorDescriptionHandlerAdapter(DelegatingInvocableHandler delegatingHandler) Construct an instance with the provided delegating handler.HandlerAdapter(org.springframework.messaging.handler.invocation.InvocableHandlerMethod invokerHandlerMethod) Construct an instance with the provided method. -
Method Summary
Modifier and TypeMethodDescriptiongetBean()getInvocationResultFor(Object result, Object inboundPayload) getMethodAsString(Object payload) booleanReturn true if any handler method has an async reply type.
-
Constructor Details
-
HandlerAdapter
public HandlerAdapter(org.springframework.messaging.handler.invocation.InvocableHandlerMethod invokerHandlerMethod) Construct an instance with the provided method.- Parameters:
invokerHandlerMethod- the method.
-
HandlerAdapter
Construct an instance with the provided delegating handler.- Parameters:
delegatingHandler- the handler.
-
-
Method Details
-
isAsyncReplies
public boolean isAsyncReplies()Return true if any handler method has an async reply type.- Returns:
- the asyncReply.
- Since:
- 3.2
-
invoke
@Nullable public Object invoke(org.springframework.messaging.Message<?> message, Object... providedArgs) throws Exception - Throws:
Exception
-
getMethodAsString
-
getBean
-
getInvocationResultFor
@Nullable public InvocationResult getInvocationResultFor(Object result, @Nullable Object inboundPayload)
-