Class AbstractReactivePulsarListenerEndpoint<T>
java.lang.Object
org.springframework.pulsar.reactive.config.AbstractReactivePulsarListenerEndpoint<T>
- Type Parameters:
T- Message payload type.
- All Implemented Interfaces:
org.springframework.beans.factory.Aware,org.springframework.beans.factory.BeanFactoryAware,org.springframework.beans.factory.InitializingBean,org.springframework.pulsar.config.ListenerEndpoint<ReactivePulsarMessageListenerContainer<T>>,ReactivePulsarListenerEndpoint<T>
- Direct Known Subclasses:
MethodReactivePulsarListenerEndpoint
public abstract class AbstractReactivePulsarListenerEndpoint<T>
extends Object
implements ReactivePulsarListenerEndpoint<T>, org.springframework.beans.factory.BeanFactoryAware, org.springframework.beans.factory.InitializingBean
Base implementation for
ReactivePulsarListenerEndpoint.-
Constructor Summary
Constructors -
Method Summary
Modifier and TypeMethodDescriptionvoidprotected abstract org.springframework.pulsar.listener.adapter.AbstractPulsarMessageToSpringMessageAdapter<T>createMessageHandler(ReactivePulsarMessageListenerContainer<T> container, org.springframework.pulsar.support.MessageConverter messageConverter) protected org.springframework.beans.factory.config.BeanExpressionContextprotected org.springframework.beans.factory.BeanFactoryprotected org.springframework.expression.BeanResolvergetId()protected org.springframework.beans.factory.config.BeanExpressionResolverorg.apache.pulsar.common.schema.SchemaTypeorg.apache.pulsar.client.api.SubscriptionTypebooleanvoidsetAutoStartup(Boolean autoStartup) voidsetBeanFactory(org.springframework.beans.factory.BeanFactory beanFactory) voidsetConcurrency(Integer concurrency) Set the concurrency for this endpoint's container.voidsetFluxListener(boolean fluxListener) voidvoidsetSchemaType(org.apache.pulsar.common.schema.SchemaType schemaType) voidsetSubscriptionName(String subscriptionName) voidsetSubscriptionType(org.apache.pulsar.client.api.SubscriptionType subscriptionType) voidsetTopicPattern(String topicPattern) voidvoidsetupListenerContainer(ReactivePulsarMessageListenerContainer<T> listenerContainer, org.springframework.pulsar.support.MessageConverter messageConverter) voidsetUseKeyOrderedProcessing(Boolean useKeyOrderedProcessing)
-
Constructor Details
-
AbstractReactivePulsarListenerEndpoint
public AbstractReactivePulsarListenerEndpoint()
-
-
Method Details
-
setBeanFactory
public void setBeanFactory(org.springframework.beans.factory.BeanFactory beanFactory) throws org.springframework.beans.BeansException - Specified by:
setBeanFactoryin interfaceorg.springframework.beans.factory.BeanFactoryAware- Throws:
org.springframework.beans.BeansException
-
getBeanFactory
@Nullable protected org.springframework.beans.factory.BeanFactory getBeanFactory() -
afterPropertiesSet
public void afterPropertiesSet()- Specified by:
afterPropertiesSetin interfaceorg.springframework.beans.factory.InitializingBean
-
getResolver
@Nullable protected org.springframework.beans.factory.config.BeanExpressionResolver getResolver() -
getBeanExpressionContext
@Nullable protected org.springframework.beans.factory.config.BeanExpressionContext getBeanExpressionContext() -
getBeanResolver
@Nullable protected org.springframework.expression.BeanResolver getBeanResolver() -
setSubscriptionName
-
getSubscriptionName
- Specified by:
getSubscriptionNamein interfaceorg.springframework.pulsar.config.ListenerEndpoint<T>
-
setId
-
getId
- Specified by:
getIdin interfaceorg.springframework.pulsar.config.ListenerEndpoint<T>
-
setTopics
-
getTopics
- Specified by:
getTopicsin interfaceorg.springframework.pulsar.config.ListenerEndpoint<T>
-
setTopicPattern
-
getTopicPattern
- Specified by:
getTopicPatternin interfaceorg.springframework.pulsar.config.ListenerEndpoint<T>
-
getAutoStartup
- Specified by:
getAutoStartupin interfaceorg.springframework.pulsar.config.ListenerEndpoint<T>
-
setAutoStartup
-
setupListenerContainer
public void setupListenerContainer(ReactivePulsarMessageListenerContainer<T> listenerContainer, @Nullable org.springframework.pulsar.support.MessageConverter messageConverter) - Specified by:
setupListenerContainerin interfaceorg.springframework.pulsar.config.ListenerEndpoint<T>
-
createMessageHandler
protected abstract org.springframework.pulsar.listener.adapter.AbstractPulsarMessageToSpringMessageAdapter<T> createMessageHandler(ReactivePulsarMessageListenerContainer<T> container, @Nullable org.springframework.pulsar.support.MessageConverter messageConverter) -
getFluxListener
-
setFluxListener
public void setFluxListener(boolean fluxListener) -
isFluxListener
public boolean isFluxListener()- Specified by:
isFluxListenerin interfaceReactivePulsarListenerEndpoint<T>
-
getSubscriptionType
public org.apache.pulsar.client.api.SubscriptionType getSubscriptionType()- Specified by:
getSubscriptionTypein interfaceorg.springframework.pulsar.config.ListenerEndpoint<T>
-
setSubscriptionType
public void setSubscriptionType(org.apache.pulsar.client.api.SubscriptionType subscriptionType) -
getSchemaType
public org.apache.pulsar.common.schema.SchemaType getSchemaType()- Specified by:
getSchemaTypein interfaceorg.springframework.pulsar.config.ListenerEndpoint<T>
-
setSchemaType
public void setSchemaType(org.apache.pulsar.common.schema.SchemaType schemaType) -
getConcurrency
- Specified by:
getConcurrencyin interfaceorg.springframework.pulsar.config.ListenerEndpoint<T>
-
setConcurrency
Set the concurrency for this endpoint's container.- Parameters:
concurrency- the concurrency.
-
getUseKeyOrderedProcessing
- Specified by:
getUseKeyOrderedProcessingin interfaceReactivePulsarListenerEndpoint<T>
-
setUseKeyOrderedProcessing
-