Class AbstractPulsarListenerContainerFactory<C extends AbstractPulsarMessageListenerContainer<T>,T>
java.lang.Object
org.springframework.pulsar.config.AbstractPulsarListenerContainerFactory<C,T>
- Type Parameters:
C- theAbstractPulsarMessageListenerContainerimplementation type.T- Message payload type.
- All Implemented Interfaces:
org.springframework.beans.factory.Aware,org.springframework.context.ApplicationContextAware,org.springframework.context.ApplicationEventPublisherAware,ListenerContainerFactory<PulsarMessageListenerContainer,,PulsarListenerEndpoint> PulsarContainerFactory<PulsarMessageListenerContainer,,PulsarListenerEndpoint> PulsarListenerContainerFactory
- Direct Known Subclasses:
ConcurrentPulsarListenerContainerFactory
public abstract class AbstractPulsarListenerContainerFactory<C extends AbstractPulsarMessageListenerContainer<T>,T>
extends Object
implements PulsarListenerContainerFactory, org.springframework.context.ApplicationEventPublisherAware, org.springframework.context.ApplicationContextAware
Base
PulsarListenerContainerFactory implementation.-
Field Summary
Fields -
Constructor Summary
ConstructorsModifierConstructorDescriptionprotectedAbstractPulsarListenerContainerFactory(PulsarConsumerFactory<? super T> consumerFactory, PulsarContainerProperties containerProperties) -
Method Summary
Modifier and TypeMethodDescriptionprotected abstract CCreate a message listener container for the given endpoint.protected PulsarConsumerFactory<? super T>protected voidinitializeContainer(C instance, PulsarListenerEndpoint endpoint) voidsetApplicationContext(org.springframework.context.ApplicationContext applicationContext) voidsetApplicationEventPublisher(org.springframework.context.ApplicationEventPublisher applicationEventPublisher) voidsetAutoStartup(Boolean autoStartup) voidsetBatchListener(Boolean batchListener) voidsetMessageConverter(MessageConverter messageConverter) Set the message converter to use if dynamic argument type matching is needed.voidsetPhase(int phase) Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, waitMethods inherited from interface org.springframework.pulsar.config.ListenerContainerFactory
createListenerContainerMethods inherited from interface org.springframework.pulsar.config.PulsarContainerFactory
createContainer
-
Field Details
-
logger
protected final org.springframework.core.log.LogAccessor logger
-
-
Constructor Details
-
AbstractPulsarListenerContainerFactory
protected AbstractPulsarListenerContainerFactory(PulsarConsumerFactory<? super T> consumerFactory, PulsarContainerProperties containerProperties)
-
-
Method Details
-
getConsumerFactory
-
getContainerProperties
-
setApplicationContext
public void setApplicationContext(org.springframework.context.ApplicationContext applicationContext) throws org.springframework.beans.BeansException - Specified by:
setApplicationContextin interfaceorg.springframework.context.ApplicationContextAware- Throws:
org.springframework.beans.BeansException
-
setAutoStartup
-
setPhase
public void setPhase(int phase) -
setMessageConverter
Set the message converter to use if dynamic argument type matching is needed.- Parameters:
messageConverter- the converter.
-
setBatchListener
-
setApplicationEventPublisher
public void setApplicationEventPublisher(org.springframework.context.ApplicationEventPublisher applicationEventPublisher) - Specified by:
setApplicationEventPublisherin interfaceorg.springframework.context.ApplicationEventPublisherAware
-
createRegisteredContainer
Description copied from interface:PulsarContainerFactoryCreate a message listener container for the given endpoint. Containers created using this method are added to the listener endpoint registry.- Specified by:
createRegisteredContainerin interfacePulsarContainerFactory<C extends AbstractPulsarMessageListenerContainer<T>,T> - Parameters:
endpoint- the endpoint to configure- Returns:
- the created container
-
createContainerInstance
-
initializeContainer
-