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 paths for those that are used to build such 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, setMessageConverter, setPhase, setPubSubDomain, setReplyPubSubDomain, setSessionAcknowledgeMode, setSessionTransacted, setSubscriptionDurable, setSubscriptionShared
public void setTaskExecutor(Executor taskExecutor)
public void setTransactionManager(PlatformTransactionManager transactionManager)
public void setCacheLevel(Integer cacheLevel)
public void setCacheLevelName(String cacheLevelName)
public void setConcurrency(String concurrency)
public void setMaxMessagesPerTask(Integer maxMessagesPerTask)
public void setReceiveTimeout(Long receiveTimeout)
public void setRecoveryInterval(Long recoveryInterval)
public void setBackOff(BackOff backOff)
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>