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 Details

    • AbstractReactivePulsarListenerEndpoint

      public AbstractReactivePulsarListenerEndpoint()
  • Method Details

    • setBeanFactory

      public void setBeanFactory(org.springframework.beans.factory.BeanFactory beanFactory) throws org.springframework.beans.BeansException
      Specified by:
      setBeanFactory in interface org.springframework.beans.factory.BeanFactoryAware
      Throws:
      org.springframework.beans.BeansException
    • getBeanFactory

      @Nullable protected org.springframework.beans.factory.BeanFactory getBeanFactory()
    • afterPropertiesSet

      public void afterPropertiesSet()
      Specified by:
      afterPropertiesSet in interface org.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

      public void setSubscriptionName(String subscriptionName)
    • getSubscriptionName

      @Nullable public String getSubscriptionName()
      Specified by:
      getSubscriptionName in interface org.springframework.pulsar.config.ListenerEndpoint<T>
    • setId

      public void setId(String id)
    • getId

      public String getId()
      Specified by:
      getId in interface org.springframework.pulsar.config.ListenerEndpoint<T>
    • setTopics

      public void setTopics(String... topics)
    • getTopics

      public List<String> getTopics()
      Specified by:
      getTopics in interface org.springframework.pulsar.config.ListenerEndpoint<T>
    • setTopicPattern

      public void setTopicPattern(String topicPattern)
    • getTopicPattern

      public String getTopicPattern()
      Specified by:
      getTopicPattern in interface org.springframework.pulsar.config.ListenerEndpoint<T>
    • getAutoStartup

      @Nullable public Boolean getAutoStartup()
      Specified by:
      getAutoStartup in interface org.springframework.pulsar.config.ListenerEndpoint<T>
    • setAutoStartup

      public void setAutoStartup(Boolean autoStartup)
    • setupListenerContainer

      public void setupListenerContainer(ReactivePulsarMessageListenerContainer<T> listenerContainer, @Nullable org.springframework.pulsar.support.MessageConverter messageConverter)
      Specified by:
      setupListenerContainer in interface org.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

      @Nullable public Boolean getFluxListener()
    • setFluxListener

      public void setFluxListener(boolean fluxListener)
    • isFluxListener

      public boolean isFluxListener()
      Specified by:
      isFluxListener in interface ReactivePulsarListenerEndpoint<T>
    • getSubscriptionType

      public org.apache.pulsar.client.api.SubscriptionType getSubscriptionType()
      Specified by:
      getSubscriptionType in interface org.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:
      getSchemaType in interface org.springframework.pulsar.config.ListenerEndpoint<T>
    • setSchemaType

      public void setSchemaType(org.apache.pulsar.common.schema.SchemaType schemaType)
    • getConcurrency

      @Nullable public Integer getConcurrency()
      Specified by:
      getConcurrency in interface org.springframework.pulsar.config.ListenerEndpoint<T>
    • setConcurrency

      public void setConcurrency(Integer concurrency)
      Set the concurrency for this endpoint's container.
      Parameters:
      concurrency - the concurrency.
    • getUseKeyOrderedProcessing

      public Boolean getUseKeyOrderedProcessing()
      Specified by:
      getUseKeyOrderedProcessing in interface ReactivePulsarListenerEndpoint<T>
    • setUseKeyOrderedProcessing

      public void setUseKeyOrderedProcessing(Boolean useKeyOrderedProcessing)