Class AbstractPulsarMessageContainer

java.lang.Object
org.springframework.pulsar.core.AbstractPulsarMessageContainer
All Implemented Interfaces:
org.springframework.beans.factory.Aware, org.springframework.beans.factory.BeanNameAware, org.springframework.beans.factory.DisposableBean, org.springframework.context.ApplicationContextAware, org.springframework.context.ApplicationEventPublisherAware, org.springframework.context.Lifecycle, org.springframework.context.Phased, org.springframework.context.SmartLifecycle
Direct Known Subclasses:
AbstractPulsarMessageListenerContainer, AbstractPulsarMessageReaderContainer

public abstract class AbstractPulsarMessageContainer extends Object implements org.springframework.context.ApplicationEventPublisherAware, org.springframework.beans.factory.BeanNameAware, org.springframework.context.ApplicationContextAware, org.springframework.context.SmartLifecycle, org.springframework.beans.factory.DisposableBean
Base class for the various container implementations.
  • Field Summary

    Fields
    Modifier and Type
    Field
    Description
    protected boolean
     
    protected final org.springframework.core.log.LogAccessor
     
    protected boolean
     

    Fields inherited from interface org.springframework.context.SmartLifecycle

    DEFAULT_PHASE
  • Constructor Summary

    Constructors
    Constructor
    Description
     
  • Method Summary

    Modifier and Type
    Method
    Description
    protected abstract void
     
    protected abstract void
     
    protected org.springframework.context.ApplicationContext
     
    org.springframework.context.ApplicationEventPublisher
    Get the event publisher.
    Return the bean name.
    int
     
    void
    setApplicationContext(org.springframework.context.ApplicationContext applicationContext)
     
    void
    setApplicationEventPublisher(org.springframework.context.ApplicationEventPublisher applicationEventPublisher)
     
    void
     
    void
    setPhase(int phase)
     

    Methods inherited from class java.lang.Object

    clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait

    Methods inherited from interface org.springframework.beans.factory.DisposableBean

    destroy

    Methods inherited from interface org.springframework.context.Lifecycle

    isRunning, start, stop

    Methods inherited from interface org.springframework.context.SmartLifecycle

    isAutoStartup, stop
  • Field Details

    • logger

      protected final org.springframework.core.log.LogAccessor logger
    • autoStartup

      protected boolean autoStartup
    • running

      protected volatile boolean running
  • Constructor Details

    • AbstractPulsarMessageContainer

      public AbstractPulsarMessageContainer()
  • Method Details

    • setApplicationEventPublisher

      public void setApplicationEventPublisher(org.springframework.context.ApplicationEventPublisher applicationEventPublisher)
      Specified by:
      setApplicationEventPublisher in interface org.springframework.context.ApplicationEventPublisherAware
    • getApplicationEventPublisher

      @Nullable public org.springframework.context.ApplicationEventPublisher getApplicationEventPublisher()
      Get the event publisher.
      Returns:
      the publisher
    • setBeanName

      public void setBeanName(String name)
      Specified by:
      setBeanName in interface org.springframework.beans.factory.BeanNameAware
    • getBeanName

      @Nullable public String getBeanName()
      Return the bean name.
      Returns:
      the bean name.
    • setApplicationContext

      public void setApplicationContext(org.springframework.context.ApplicationContext applicationContext) throws org.springframework.beans.BeansException
      Specified by:
      setApplicationContext in interface org.springframework.context.ApplicationContextAware
      Throws:
      org.springframework.beans.BeansException
    • getApplicationContext

      @Nullable protected org.springframework.context.ApplicationContext getApplicationContext()
    • setPhase

      public void setPhase(int phase)
    • getPhase

      public int getPhase()
      Specified by:
      getPhase in interface org.springframework.context.Phased
      Specified by:
      getPhase in interface org.springframework.context.SmartLifecycle
    • doStart

      protected abstract void doStart()
    • doStop

      protected abstract void doStop()