Class MethodPulsarReaderEndpoint<V>
java.lang.Object
org.springframework.pulsar.config.AbstractPulsarReaderEndpoint<V>
org.springframework.pulsar.config.MethodPulsarReaderEndpoint<V>
- Type Parameters:
V
- Message payload type
- All Implemented Interfaces:
Aware
,BeanFactoryAware
,InitializingBean
,PulsarReaderEndpoint<PulsarMessageReaderContainer>
A
PulsarReaderEndpoint
providing the method to invoke to process an incoming
message for this endpoint.- Author:
- Soby Chacko
-
Constructor Summary
-
Method Summary
Modifier and TypeMethodDescriptionprotected HandlerAdapter
configureListenerAdapter
(AbstractPulsarMessageToSpringMessageAdapter<V> messageListener) protected AbstractPulsarMessageToSpringMessageAdapter<V>
createMessageListenerInstance
(MessageConverter messageConverter) protected AbstractPulsarMessageToSpringMessageAdapter<V>
createReaderListener
(PulsarMessageReaderContainer container, MessageConverter messageConverter) getBean()
void
void
setMessageHandlerMethodFactory
(MessageHandlerMethodFactory messageHandlerMethodFactory) void
setMessagingConverter
(SmartMessageConverter messagingConverter) void
Set the method to invoke to process a message managed by this endpoint.void
setReaderBuilderCustomizer
(ReaderBuilderCustomizer<?> readerBuilderCustomizer) Methods inherited from class org.springframework.pulsar.config.AbstractPulsarReaderEndpoint
afterPropertiesSet, getAutoStartup, getBeanExpressionContext, getBeanFactory, getBeanResolver, getId, getResolver, getSchemaType, getStartMessageId, getTopics, setAutoStartup, setBeanFactory, setId, setSchemaType, setStartMessageId, setSubscriptionName, setTopics, setupListenerContainer
-
Constructor Details
-
MethodPulsarReaderEndpoint
public MethodPulsarReaderEndpoint()
-
-
Method Details
-
setBean
-
getBean
-
setMethod
Set the method to invoke to process a message managed by this endpoint.- Parameters:
method
- the target method for thebean
.
-
getMethod
-
createReaderListener
protected AbstractPulsarMessageToSpringMessageAdapter<V> createReaderListener(PulsarMessageReaderContainer container, @Nullable MessageConverter messageConverter) - Specified by:
createReaderListener
in classAbstractPulsarReaderEndpoint<V>
-
configureListenerAdapter
protected HandlerAdapter configureListenerAdapter(AbstractPulsarMessageToSpringMessageAdapter<V> messageListener) -
createMessageListenerInstance
protected AbstractPulsarMessageToSpringMessageAdapter<V> createMessageListenerInstance(@Nullable MessageConverter messageConverter) -
setMessagingConverter
-
setMessageHandlerMethodFactory
-
getReaderBuilderCustomizer
-
setReaderBuilderCustomizer
-