Class SourcePollingChannelAdapterFactoryBean
java.lang.Object
org.springframework.integration.config.SourcePollingChannelAdapterFactoryBean
- All Implemented Interfaces:
Aware,BeanClassLoaderAware,BeanFactoryAware,BeanNameAware,DisposableBean,FactoryBean<SourcePollingChannelAdapter>,InitializingBean,Lifecycle,Phased,SmartLifecycle
public class SourcePollingChannelAdapterFactoryBean
extends Object
implements FactoryBean<SourcePollingChannelAdapter>, BeanFactoryAware, BeanNameAware, BeanClassLoaderAware, InitializingBean, SmartLifecycle, DisposableBean
FactoryBean for creating a SourcePollingChannelAdapter instance.
- Author:
- Mark Fisher, Oleg Zhurakousky, Gary Russell, Artem Bilan, Christian Tzolov
-
Field Summary
Fields inherited from interface org.springframework.beans.factory.FactoryBean
OBJECT_TYPE_ATTRIBUTEFields inherited from interface org.springframework.context.SmartLifecycle
DEFAULT_PHASE -
Constructor Summary
Constructors -
Method Summary
Modifier and TypeMethodDescriptionvoidvoiddestroy()Class<?> intgetPhase()booleanbooleanvoidsetAutoStartup(Boolean autoStartup) voidsetBeanClassLoader(ClassLoader classLoader) voidsetBeanFactory(BeanFactory beanFactory) voidsetBeanName(String beanName) voidsetChannelResolver(DestinationResolver<MessageChannel> channelResolver) Specify theDestinationResolverstrategy to use.voidsetOutputChannel(MessageChannel outputChannel) voidsetOutputChannelName(String outputChannelName) voidsetPhase(int phase) voidsetPollerMetadata(PollerMetadata pollerMetadata) voidvoidsetSendTimeout(long sendTimeout) voidsetSource(MessageSource<?> source) voidsetTaskScheduler(TaskScheduler taskScheduler) Set aTaskSchedulerfor polling tasks.voidstart()voidstop()voidMethods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, waitMethods inherited from interface org.springframework.beans.factory.FactoryBean
isSingletonMethods inherited from interface org.springframework.context.SmartLifecycle
isPauseable
-
Constructor Details
-
SourcePollingChannelAdapterFactoryBean
public SourcePollingChannelAdapterFactoryBean()
-
-
Method Details
-
setSource
-
setSendTimeout
public void setSendTimeout(long sendTimeout) -
setOutputChannel
-
setOutputChannelName
-
setPollerMetadata
-
setAutoStartup
-
setPhase
public void setPhase(int phase) -
setRole
-
setTaskScheduler
Set aTaskSchedulerfor polling tasks.- Parameters:
taskScheduler- theTaskSchedulerfor polling tasks.- Since:
- 6.4
-
setChannelResolver
Specify theDestinationResolverstrategy to use. The default is a BeanFactoryChannelResolver.- Parameters:
channelResolver- The channel resolver.- Since:
- 4.1.3
-
setBeanFactory
- Specified by:
setBeanFactoryin interfaceBeanFactoryAware
-
setBeanClassLoader
- Specified by:
setBeanClassLoaderin interfaceBeanClassLoaderAware
-
setBeanName
- Specified by:
setBeanNamein interfaceBeanNameAware
-
afterPropertiesSet
public void afterPropertiesSet()- Specified by:
afterPropertiesSetin interfaceInitializingBean
-
getObject
- Specified by:
getObjectin interfaceFactoryBean<SourcePollingChannelAdapter>
-
getObjectType
- Specified by:
getObjectTypein interfaceFactoryBean<SourcePollingChannelAdapter>
-
isAutoStartup
public boolean isAutoStartup()- Specified by:
isAutoStartupin interfaceSmartLifecycle
-
getPhase
public int getPhase()- Specified by:
getPhasein interfacePhased- Specified by:
getPhasein interfaceSmartLifecycle
-
isRunning
-
start
-
stop
-
stop
- Specified by:
stopin interfaceSmartLifecycle
-
destroy
public void destroy()- Specified by:
destroyin interfaceDisposableBean
-