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.- Author:
- Gary Russell
-
Constructor Summary
ConstructorsConstructorDescriptionHandlerAdapter(DelegatingInvocableHandler delegatingHandler) Construct an instance with the provided delegating handler.HandlerAdapter(InvocableHandlerMethod invokerHandlerMethod) Construct an instance with the provided method. -
Method Summary
-
Constructor Details
-
HandlerAdapter
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
-
invoke
- Throws:
Exception
-
getMethodAsString
-
getBean
-