org.springframework.integration.endpoint
Class SourcePollingChannelAdapter
java.lang.Object
org.springframework.integration.context.IntegrationObjectSupport
org.springframework.integration.endpoint.AbstractEndpoint
org.springframework.integration.endpoint.AbstractPollingEndpoint
org.springframework.integration.endpoint.SourcePollingChannelAdapter
- All Implemented Interfaces:
- BeanClassLoaderAware, BeanFactoryAware, BeanNameAware, InitializingBean, Lifecycle, Phased, SmartLifecycle, NamedComponent, TrackableComponent
public class SourcePollingChannelAdapter
- extends AbstractPollingEndpoint
- implements TrackableComponent
A Channel Adapter implementation for connecting a
MessageSource
to a MessageChannel
.
- Author:
- Mark Fisher
Method Summary |
protected boolean |
doPoll()
|
String |
getComponentType()
Subclasses may implement this method to provide component type information. |
protected void |
onInit()
Subclasses may implement this for initialization logic. |
void |
setOutputChannel(MessageChannel outputChannel)
Specify the MessageChannel where Messages should be sent. |
void |
setSendTimeout(long sendTimeout)
Specify the maximum time to wait for a Message to be sent to the
output channel. |
void |
setShouldTrack(boolean shouldTrack)
Specify whether this component should be tracked in the Message History. |
void |
setSource(MessageSource<?> source)
Specify the source to be polled for Messages. |
Methods inherited from class org.springframework.integration.context.IntegrationObjectSupport |
afterPropertiesSet, getBeanFactory, getComponentName, getConversionService, getRequiredMetadataPersister, getTaskScheduler, setBeanFactory, setBeanName, setComponentName, setConversionService, toString |
SourcePollingChannelAdapter
public SourcePollingChannelAdapter()
setSource
public void setSource(MessageSource<?> source)
- Specify the source to be polled for Messages.
setOutputChannel
public void setOutputChannel(MessageChannel outputChannel)
- Specify the
MessageChannel
where Messages should be sent.
setSendTimeout
public void setSendTimeout(long sendTimeout)
- Specify the maximum time to wait for a Message to be sent to the
output channel.
setShouldTrack
public void setShouldTrack(boolean shouldTrack)
- Specify whether this component should be tracked in the Message History.
- Specified by:
setShouldTrack
in interface TrackableComponent
getComponentType
public String getComponentType()
- Description copied from class:
IntegrationObjectSupport
- Subclasses may implement this method to provide component type information.
- Specified by:
getComponentType
in interface NamedComponent
- Overrides:
getComponentType
in class IntegrationObjectSupport
onInit
protected void onInit()
- Description copied from class:
IntegrationObjectSupport
- Subclasses may implement this for initialization logic.
- Overrides:
onInit
in class AbstractPollingEndpoint
doPoll
protected boolean doPoll()
- Specified by:
doPoll
in class AbstractPollingEndpoint
Copyright © 2010. All Rights Reserved.