public abstract class AbstractPollingEndpoint extends AbstractEndpoint implements BeanClassLoaderAware
lifecycleCondition, lifecycleLocklogger| Constructor and Description |
|---|
AbstractPollingEndpoint() |
| Modifier and Type | Method and Description |
|---|---|
protected void |
applyReceiveOnlyAdviceChain(Collection<org.aopalliance.aop.Advice> chain)
Add the advice chain to the component that responds to
receiveMessage() calls. |
protected void |
doStart()
Subclasses must implement this method with the start behavior.
|
protected void |
doStop()
Subclasses must implement this method with the stop behavior.
|
protected ClassLoader |
getBeanClassLoader() |
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 abstract void |
handleMessage(Message<?> message)
Handle a message.
|
protected boolean |
isReceiveOnlyAdvice(org.aopalliance.aop.Advice advice)
Return true if this advice should be applied only to the
receiveMessage() operation
rather than the whole poll. |
protected void |
onInit()
Subclasses may implement this for initialization logic.
|
protected abstract Message<?> |
receiveMessage()
Obtain the next message (if one is available).
|
void |
setAdviceChain(List<org.aopalliance.aop.Advice> adviceChain) |
void |
setBeanClassLoader(ClassLoader classLoader) |
void |
setErrorHandler(ErrorHandler errorHandler) |
void |
setMaxMessagesPerPoll(long maxMessagesPerPoll) |
void |
setTaskExecutor(Executor taskExecutor) |
void |
setTransactionSynchronizationFactory(TransactionSynchronizationFactory transactionSynchronizationFactory) |
void |
setTrigger(Trigger trigger) |
doStop, getPhase, isAutoStartup, isRunning, setAutoStartup, setPhase, setTaskScheduler, start, stop, stopafterPropertiesSet, extractTypeIfPossible, getApplicationContext, getApplicationContextId, getBeanFactory, getChannelResolver, getComponentName, getComponentType, getConversionService, getIntegrationProperties, getIntegrationProperty, getMessageBuilderFactory, getTaskScheduler, setApplicationContext, setBeanFactory, setBeanName, setChannelResolver, setComponentName, setConversionService, setMessageBuilderFactory, toStringpublic void setTaskExecutor(Executor taskExecutor)
public void setTrigger(Trigger trigger)
public void setAdviceChain(List<org.aopalliance.aop.Advice> adviceChain)
public void setMaxMessagesPerPoll(long maxMessagesPerPoll)
public void setErrorHandler(ErrorHandler errorHandler)
public void setBeanClassLoader(ClassLoader classLoader)
setBeanClassLoader in interface BeanClassLoaderAwarepublic void setTransactionSynchronizationFactory(TransactionSynchronizationFactory transactionSynchronizationFactory)
protected ClassLoader getBeanClassLoader()
protected boolean isReceiveOnlyAdvice(org.aopalliance.aop.Advice advice)
receiveMessage() operation
rather than the whole poll.advice - The advice.protected void applyReceiveOnlyAdviceChain(Collection<org.aopalliance.aop.Advice> chain)
receiveMessage() calls.chain - the advice chain Collection.protected void onInit()
IntegrationObjectSupportonInit in class IntegrationObjectSupportprotected void doStart()
AbstractEndpointAbstractEndpoint.lifecycleLock.doStart in class AbstractEndpointprotected void doStop()
AbstractEndpointAbstractEndpoint.lifecycleLock.doStop in class AbstractEndpointprotected abstract Message<?> receiveMessage()
protected abstract void handleMessage(Message<?> message)
message - The message.protected Object getResourceToBind()
protected String getResourceKey()
IntegrationResourceHolder. The default
ExpressionEvaluatingTransactionSynchronizationProcessor
makes this attribute available as a variable in SpEL expressions.