Class JmsChannelFactoryBean
java.lang.Object
org.springframework.beans.factory.config.AbstractFactoryBean<AbstractJmsChannel>
org.springframework.integration.jms.config.JmsChannelFactoryBean
- All Implemented Interfaces:
Aware
,BeanClassLoaderAware
,BeanFactoryAware
,BeanNameAware
,DisposableBean
,FactoryBean<AbstractJmsChannel>
,InitializingBean
,Lifecycle
,Phased
,SmartLifecycle
public class JmsChannelFactoryBean
extends AbstractFactoryBean<AbstractJmsChannel>
implements SmartLifecycle, BeanNameAware
- Since:
- 2.0
- Author:
- Mark Fisher, Oleg Zhurakousky, Gary Russell, Artem Bilan
-
Field Summary
Fields inherited from class org.springframework.beans.factory.config.AbstractFactoryBean
logger
Fields inherited from interface org.springframework.beans.factory.FactoryBean
OBJECT_TYPE_ATTRIBUTE
Fields inherited from interface org.springframework.context.SmartLifecycle
DEFAULT_PHASE
-
Constructor Summary
-
Method Summary
Modifier and TypeMethodDescriptionprotected AbstractJmsChannel
protected void
destroyInstance
(AbstractJmsChannel instance) Class<?>
int
getPhase()
boolean
boolean
void
setAcceptMessagesWhileStopping
(boolean acceptMessagesWhileStopping) void
setAutoStartup
(boolean autoStartup) void
setBeanName
(String name) void
setCacheLevel
(Integer cacheLevel) void
setCacheLevelName
(String cacheLevelName) void
setClientId
(String clientId) void
setConcurrency
(String concurrency) void
setConcurrentConsumers
(int concurrentConsumers) void
setConnectionFactory
(ConnectionFactory connectionFactory) void
setContainerType
(Class<? extends AbstractMessageListenerContainer> containerType) void
setDeliveryPersistent
(boolean deliveryPersistent) void
setDestination
(Destination destination) void
setDestinationName
(String destinationName) void
setDestinationResolver
(DestinationResolver destinationResolver) void
setDurableSubscriptionName
(String durableSubscriptionName) void
setErrorHandler
(ErrorHandler errorHandler) void
setExceptionListener
(ExceptionListener exceptionListener) void
setExplicitQosEnabled
(boolean explicitQosEnabled) void
setExposeListenerSession
(boolean exposeListenerSession) void
setIdleTaskExecutionLimit
(int idleTaskExecutionLimit) void
setInterceptors
(List<ChannelInterceptor> interceptors) void
setMaxConcurrentConsumers
(int maxConcurrentConsumers) void
setMaxMessagesPerTask
(int maxMessagesPerTask) void
setMaxSubscribers
(int maxSubscribers) void
setMessageConverter
(MessageConverter messageConverter) void
setMessageIdEnabled
(boolean messageIdEnabled) void
setMessageSelector
(String messageSelector) void
setMessageTimestampEnabled
(boolean messageTimestampEnabled) void
setPhase
(int phase) void
setPriority
(int priority) void
setPubSubDomain
(boolean pubSubDomain) void
setPubSubNoLocal
(boolean pubSubNoLocal) void
setReceiveTimeout
(long receiveTimeout) void
setRecoveryInterval
(long recoveryInterval) void
setSessionAcknowledgeMode
(int sessionAcknowledgeMode) void
setSessionTransacted
(boolean sessionTransacted) void
setSubscriptionDurable
(boolean subscriptionDurable) void
setSubscriptionShared
(boolean subscriptionShared) void
setTaskExecutor
(Executor taskExecutor) void
setTimeToLive
(long timeToLive) void
setTransactionManager
(PlatformTransactionManager transactionManager) void
setTransactionName
(String transactionName) void
setTransactionTimeout
(int transactionTimeout) void
start()
void
stop()
void
Methods inherited from class org.springframework.beans.factory.config.AbstractFactoryBean
afterPropertiesSet, destroy, getBeanFactory, getBeanTypeConverter, getEarlySingletonInterfaces, getObject, isSingleton, setBeanClassLoader, setBeanFactory, setSingleton
-
Constructor Details
-
JmsChannelFactoryBean
public JmsChannelFactoryBean() -
JmsChannelFactoryBean
public JmsChannelFactoryBean(boolean messageDriven)
-
-
Method Details
-
setInterceptors
-
setDeliveryPersistent
public void setDeliveryPersistent(boolean deliveryPersistent) -
setExplicitQosEnabled
public void setExplicitQosEnabled(boolean explicitQosEnabled) -
setMessageConverter
-
setMessageIdEnabled
public void setMessageIdEnabled(boolean messageIdEnabled) -
setMessageTimestampEnabled
public void setMessageTimestampEnabled(boolean messageTimestampEnabled) -
setPriority
public void setPriority(int priority) -
setTimeToLive
public void setTimeToLive(long timeToLive) -
setAcceptMessagesWhileStopping
public void setAcceptMessagesWhileStopping(boolean acceptMessagesWhileStopping) -
setAutoStartup
public void setAutoStartup(boolean autoStartup) -
setCacheLevelName
-
setCacheLevel
-
setClientId
-
setConcurrency
-
setConcurrentConsumers
public void setConcurrentConsumers(int concurrentConsumers) -
setConnectionFactory
-
setContainerType
-
setDestination
-
setDestinationName
-
setDestinationResolver
-
setDurableSubscriptionName
-
setErrorHandler
-
setExceptionListener
-
setExposeListenerSession
public void setExposeListenerSession(boolean exposeListenerSession) -
setIdleTaskExecutionLimit
public void setIdleTaskExecutionLimit(int idleTaskExecutionLimit) -
setMaxConcurrentConsumers
public void setMaxConcurrentConsumers(int maxConcurrentConsumers) -
setMaxMessagesPerTask
public void setMaxMessagesPerTask(int maxMessagesPerTask) -
setMessageSelector
-
setPhase
public void setPhase(int phase) -
setPubSubDomain
public void setPubSubDomain(boolean pubSubDomain) -
setPubSubNoLocal
public void setPubSubNoLocal(boolean pubSubNoLocal) -
setReceiveTimeout
public void setReceiveTimeout(long receiveTimeout) -
setRecoveryInterval
public void setRecoveryInterval(long recoveryInterval) -
setSessionAcknowledgeMode
public void setSessionAcknowledgeMode(int sessionAcknowledgeMode) -
setSessionTransacted
public void setSessionTransacted(boolean sessionTransacted) -
setSubscriptionDurable
public void setSubscriptionDurable(boolean subscriptionDurable) -
setTaskExecutor
-
setTransactionManager
-
setTransactionName
-
setTransactionTimeout
public void setTransactionTimeout(int transactionTimeout) -
setMaxSubscribers
public void setMaxSubscribers(int maxSubscribers) -
setBeanName
- Specified by:
setBeanName
in interfaceBeanNameAware
-
getObjectType
- Specified by:
getObjectType
in interfaceFactoryBean<AbstractJmsChannel>
- Specified by:
getObjectType
in classAbstractFactoryBean<AbstractJmsChannel>
-
createInstance
- Specified by:
createInstance
in classAbstractFactoryBean<AbstractJmsChannel>
-
isAutoStartup
public boolean isAutoStartup()- Specified by:
isAutoStartup
in interfaceSmartLifecycle
-
getPhase
public int getPhase()- Specified by:
getPhase
in interfacePhased
- Specified by:
getPhase
in interfaceSmartLifecycle
-
isRunning
public boolean isRunning() -
start
public void start() -
stop
public void stop() -
stop
- Specified by:
stop
in interfaceSmartLifecycle
-
destroyInstance
- Overrides:
destroyInstance
in classAbstractFactoryBean<AbstractJmsChannel>
-