public class SourcePollingChannelAdapterFactoryBean extends Object implements FactoryBean<SourcePollingChannelAdapter>, BeanFactoryAware, BeanNameAware, BeanClassLoaderAware, InitializingBean, SmartLifecycle, DisposableBean
OBJECT_TYPE_ATTRIBUTE
DEFAULT_PHASE
Constructor and Description |
---|
SourcePollingChannelAdapterFactoryBean() |
Modifier and Type | Method and Description |
---|---|
void |
afterPropertiesSet() |
void |
destroy() |
SourcePollingChannelAdapter |
getObject() |
Class<?> |
getObjectType() |
int |
getPhase() |
boolean |
isAutoStartup() |
boolean |
isRunning() |
void |
setAutoStartup(Boolean autoStartup) |
void |
setBeanClassLoader(ClassLoader classLoader) |
void |
setBeanFactory(BeanFactory beanFactory) |
void |
setBeanName(String beanName) |
void |
setChannelResolver(DestinationResolver<MessageChannel> channelResolver)
Specify the
DestinationResolver strategy to use. |
void |
setOutputChannel(MessageChannel outputChannel) |
void |
setOutputChannelName(String outputChannelName) |
void |
setPhase(int phase) |
void |
setPollerMetadata(PollerMetadata pollerMetadata) |
void |
setRole(String role) |
void |
setSendTimeout(long sendTimeout) |
void |
setSource(MessageSource<?> source) |
void |
start() |
void |
stop() |
void |
stop(Runnable callback) |
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
isSingleton
public SourcePollingChannelAdapterFactoryBean()
public void setSource(MessageSource<?> source)
public void setSendTimeout(long sendTimeout)
public void setOutputChannel(MessageChannel outputChannel)
public void setOutputChannelName(String outputChannelName)
public void setPollerMetadata(PollerMetadata pollerMetadata)
public void setAutoStartup(Boolean autoStartup)
public void setPhase(int phase)
public void setRole(String role)
public void setChannelResolver(DestinationResolver<MessageChannel> channelResolver)
DestinationResolver
strategy to use.
The default is a BeanFactoryChannelResolver.channelResolver
- The channel resolver.public void setBeanFactory(BeanFactory beanFactory)
setBeanFactory
in interface BeanFactoryAware
public void setBeanClassLoader(ClassLoader classLoader)
setBeanClassLoader
in interface BeanClassLoaderAware
public void setBeanName(String beanName)
setBeanName
in interface BeanNameAware
public void afterPropertiesSet()
afterPropertiesSet
in interface InitializingBean
public SourcePollingChannelAdapter getObject()
getObject
in interface FactoryBean<SourcePollingChannelAdapter>
public Class<?> getObjectType()
getObjectType
in interface FactoryBean<SourcePollingChannelAdapter>
public boolean isAutoStartup()
isAutoStartup
in interface SmartLifecycle
public int getPhase()
getPhase
in interface Phased
getPhase
in interface SmartLifecycle
public void stop(Runnable callback)
stop
in interface SmartLifecycle
public void destroy()
destroy
in interface DisposableBean