public class DefaultJmsListenerContainerFactory extends AbstractJmsListenerContainerFactory<DefaultMessageListenerContainer>
JmsListenerContainerFactory
implementation to build a regular
DefaultMessageListenerContainer
.
This should be the default for most users and a good transition path for those who are used to building such a container definition manually.
logger
Constructor and Description |
---|
DefaultJmsListenerContainerFactory() |
Modifier and Type | Method and Description |
---|---|
protected DefaultMessageListenerContainer |
createContainerInstance()
Create an empty container instance.
|
protected void |
initializeContainer(DefaultMessageListenerContainer container)
Further initialize the specified container.
|
void |
setBackOff(BackOff backOff) |
void |
setCacheLevel(Integer cacheLevel) |
void |
setCacheLevelName(String cacheLevelName) |
void |
setConcurrency(String concurrency) |
void |
setMaxMessagesPerTask(Integer maxMessagesPerTask) |
void |
setReceiveTimeout(Long receiveTimeout) |
void |
setRecoveryInterval(Long recoveryInterval) |
void |
setTaskExecutor(Executor taskExecutor) |
void |
setTransactionManager(PlatformTransactionManager transactionManager) |
createListenerContainer, setAutoStartup, setClientId, setConnectionFactory, setDestinationResolver, setErrorHandler, setExceptionListener, setMessageConverter, setPhase, setPubSubDomain, setReplyPubSubDomain, setReplyQosSettings, setSessionAcknowledgeMode, setSessionTransacted, setSubscriptionDurable, setSubscriptionShared
public void setTransactionManager(@Nullable PlatformTransactionManager transactionManager)
protected DefaultMessageListenerContainer createContainerInstance()
AbstractJmsListenerContainerFactory
createContainerInstance
in class AbstractJmsListenerContainerFactory<DefaultMessageListenerContainer>
protected void initializeContainer(DefaultMessageListenerContainer container)
AbstractJmsListenerContainerFactory
Subclasses can inherit from this method to apply extra configuration if necessary.
initializeContainer
in class AbstractJmsListenerContainerFactory<DefaultMessageListenerContainer>