Package org.springframework.pulsar.core
Class AbstractPulsarMessageContainer
java.lang.Object
org.springframework.pulsar.core.AbstractPulsarMessageContainer
- All Implemented Interfaces:
- Aware,- BeanNameAware,- DisposableBean,- ApplicationContextAware,- ApplicationEventPublisherAware,- Lifecycle,- Phased,- SmartLifecycle
- Direct Known Subclasses:
- AbstractPulsarMessageListenerContainer,- AbstractPulsarMessageReaderContainer
public abstract class AbstractPulsarMessageContainer
extends Object
implements ApplicationEventPublisherAware, BeanNameAware, ApplicationContextAware, SmartLifecycle, DisposableBean
Base class for the various container implementations.
- Author:
- Soby Chacko
- 
Field SummaryFieldsFields inherited from interface org.springframework.context.SmartLifecycleDEFAULT_PHASE
- 
Constructor SummaryConstructors
- 
Method SummaryModifier and TypeMethodDescriptionprotected abstract voiddoStart()protected abstract voiddoStop()protected ApplicationContextGet the event publisher.Return the bean name.intgetPhase()voidsetApplicationContext(ApplicationContext applicationContext) voidsetApplicationEventPublisher(ApplicationEventPublisher applicationEventPublisher) voidsetBeanName(String name) voidsetPhase(int phase) Methods inherited from class java.lang.Objectclone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, waitMethods inherited from interface org.springframework.beans.factory.DisposableBeandestroyMethods inherited from interface org.springframework.context.SmartLifecycleisAutoStartup, stop
- 
Field Details- 
logger
- 
autoStartupprotected boolean autoStartup
- 
runningprotected volatile boolean running
 
- 
- 
Constructor Details- 
AbstractPulsarMessageContainerpublic AbstractPulsarMessageContainer()
 
- 
- 
Method Details- 
setApplicationEventPublisher- Specified by:
- setApplicationEventPublisherin interface- ApplicationEventPublisherAware
 
- 
getApplicationEventPublisherGet the event publisher.- Returns:
- the publisher
 
- 
setBeanName- Specified by:
- setBeanNamein interface- BeanNameAware
 
- 
getBeanNameReturn the bean name.- Returns:
- the bean name.
 
- 
setApplicationContext- Specified by:
- setApplicationContextin interface- ApplicationContextAware
- Throws:
- BeansException
 
- 
getApplicationContext
- 
setPhasepublic void setPhase(int phase) 
- 
getPhasepublic int getPhase()- Specified by:
- getPhasein interface- Phased
- Specified by:
- getPhasein interface- SmartLifecycle
 
- 
doStartprotected abstract void doStart()
- 
doStopprotected abstract void doStop()
 
-