public class SourcePollingChannelAdapter extends AbstractPollingEndpoint implements TrackableComponent
MessageSource to a MessageChannel.DEFAULT_POLLING_PERIODlifecycleCondition, lifecycleLockEXPRESSION_PARSER, loggerDEFAULT_PHASE| Constructor and Description |
|---|
SourcePollingChannelAdapter() |
| Modifier and Type | Method and Description |
|---|---|
protected void |
doStart()
Subclasses must implement this method with the start behavior.
|
protected void |
doStop()
Subclasses must implement this method with the stop behavior.
|
String |
getComponentType()
Subclasses may implement this method to provide component type information.
|
MessageSource<?> |
getMessageSource()
Return this endpoint's source.
|
MessageChannel |
getOutputChannel() |
protected Object |
getReceiveMessageSource() |
protected String |
getResourceKey()
Return the key under which the resource will be made available as an
attribute on the
IntegrationResourceHolder. |
protected Object |
getResourceToBind()
Return a resource (MessageSource etc) to bind when using transaction
synchronization.
|
protected void |
handleMessage(Message<?> messageArg)
Handle a message.
|
protected boolean |
isReactive() |
protected void |
onInit()
Subclasses may implement this for initialization logic.
|
protected Message<?> |
receiveMessage()
Obtain the next message (if one is available).
|
void |
setOutputChannel(MessageChannel outputChannel)
Specify the
MessageChannel where Messages should be sent. |
void |
setOutputChannelName(String outputChannelName) |
protected void |
setReceiveMessageSource(Object source) |
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.
|
applyReceiveOnlyAdviceChain, getBeanClassLoader, getDefaultErrorChannel, getPollingFlux, getTaskExecutor, isReceiveOnlyAdvice, isSyncExecutor, setAdviceChain, setBeanClassLoader, setErrorHandler, setMaxMessagesPerPoll, setTaskExecutor, setTransactionSynchronizationFactory, setTriggerdestroy, doStop, getPhase, getRole, isActive, isAutoStartup, isRunning, setAutoStartup, setPhase, setRole, start, stop, stopafterPropertiesSet, extractTypeIfPossible, generateId, getApplicationContext, getApplicationContextId, getBeanDescription, getBeanFactory, getBeanName, getChannelResolver, getComponentName, getConversionService, getExpression, getIntegrationProperties, getIntegrationProperty, getMessageBuilderFactory, getTaskScheduler, isInitialized, setApplicationContext, setBeanFactory, setBeanName, setChannelResolver, setComponentName, setConversionService, setMessageBuilderFactory, setPrimaryExpression, setTaskScheduler, toStringclone, equals, finalize, getClass, hashCode, notify, notifyAll, wait, wait, waitgetBeanName, getComponentNamepublic void setSource(MessageSource<?> source)
source - The message source.public void setOutputChannel(MessageChannel outputChannel)
MessageChannel where Messages should be sent.outputChannel - The output channel.public MessageSource<?> getMessageSource()
public void setOutputChannelName(String outputChannelName)
public void setSendTimeout(long sendTimeout)
sendTimeout - The send timeout.public void setShouldTrack(boolean shouldTrack)
setShouldTrack in interface TrackableComponentshouldTrack - true if the component should be tracked.public String getComponentType()
IntegrationObjectSupportgetComponentType in interface NamedComponentgetComponentType in class IntegrationObjectSupportprotected boolean isReactive()
isReactive in class AbstractPollingEndpointprotected Object getReceiveMessageSource()
getReceiveMessageSource in class AbstractPollingEndpointprotected final void setReceiveMessageSource(Object source)
setReceiveMessageSource in class AbstractPollingEndpointprotected void doStart()
AbstractEndpointAbstractEndpoint.lifecycleLock.doStart in class AbstractPollingEndpointprotected void doStop()
AbstractEndpointAbstractEndpoint.lifecycleLock.doStop in class AbstractPollingEndpointprotected void onInit()
IntegrationObjectSupportonInit in class AbstractPollingEndpointpublic MessageChannel getOutputChannel()
protected void handleMessage(Message<?> messageArg)
AbstractPollingEndpointhandleMessage in class AbstractPollingEndpointmessageArg - The message.protected Message<?> receiveMessage()
AbstractPollingEndpointreceiveMessage in class AbstractPollingEndpointprotected Object getResourceToBind()
AbstractPollingEndpointgetResourceToBind in class AbstractPollingEndpointprotected String getResourceKey()
AbstractPollingEndpointIntegrationResourceHolder. The default
ExpressionEvaluatingTransactionSynchronizationProcessor
makes this attribute available as a variable in SpEL expressions.getResourceKey in class AbstractPollingEndpoint