Class DefaultPulsarReaderContainerFactory<T>
java.lang.Object
org.springframework.pulsar.config.AbstractPulsarReaderContainerFactory<DefaultPulsarMessageReaderContainer<T>,T>
org.springframework.pulsar.config.DefaultPulsarReaderContainerFactory<T>
- Type Parameters:
T
- message type in the listener.
- All Implemented Interfaces:
Aware
,ApplicationContextAware
,ApplicationEventPublisherAware
,PulsarReaderContainerFactory
,ReaderContainerFactory<PulsarMessageReaderContainer,
PulsarReaderEndpoint<PulsarMessageReaderContainer>>
public class DefaultPulsarReaderContainerFactory<T>
extends AbstractPulsarReaderContainerFactory<DefaultPulsarMessageReaderContainer<T>,T>
Concrete implementation for
PulsarReaderContainerFactory
.- Author:
- Soby Chacko
-
Field Summary
Fields inherited from class org.springframework.pulsar.config.AbstractPulsarReaderContainerFactory
logger
-
Constructor Summary
ConstructorDescriptionDefaultPulsarReaderContainerFactory
(PulsarReaderFactory<? super T> readerFactory, PulsarReaderContainerProperties containerProperties) -
Method Summary
Modifier and TypeMethodDescriptionprotected DefaultPulsarMessageReaderContainer<T>
createReaderContainer
(String... topics) protected void
initializeContainer
(DefaultPulsarMessageReaderContainer<T> instance, PulsarReaderEndpoint<PulsarMessageReaderContainer> endpoint) Methods inherited from class org.springframework.pulsar.config.AbstractPulsarReaderContainerFactory
createReaderContainer, getContainerProperties, getReaderFactory, setApplicationContext, setApplicationEventPublisher, setAutoStartup, setMessageConverter, setPhase
-
Constructor Details
-
DefaultPulsarReaderContainerFactory
public DefaultPulsarReaderContainerFactory(PulsarReaderFactory<? super T> readerFactory, PulsarReaderContainerProperties containerProperties)
-
-
Method Details
-
createContainerInstance
protected DefaultPulsarMessageReaderContainer<T> createContainerInstance(PulsarReaderEndpoint<PulsarMessageReaderContainer> endpoint) - Specified by:
createContainerInstance
in classAbstractPulsarReaderContainerFactory<DefaultPulsarMessageReaderContainer<T>,
T>
-
initializeContainer
protected void initializeContainer(DefaultPulsarMessageReaderContainer<T> instance, PulsarReaderEndpoint<PulsarMessageReaderContainer> endpoint) - Overrides:
initializeContainer
in classAbstractPulsarReaderContainerFactory<DefaultPulsarMessageReaderContainer<T>,
T>
-
createReaderContainer
-