public abstract class AbstractPollingEndpoint extends AbstractEndpoint implements org.springframework.beans.factory.BeanClassLoaderAware
lifecycleCondition, lifecycleLockEXPRESSION_PARSER, logger| Constructor and Description |
|---|
AbstractPollingEndpoint() |
| Modifier and Type | Method and Description |
|---|---|
protected void |
applyReceiveOnlyAdviceChain(java.util.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 java.lang.ClassLoader |
getBeanClassLoader() |
org.springframework.messaging.MessageChannel |
getDefaultErrorChannel()
Return the default error channel if the error handler is explicitly provided and
it is a
MessagePublishingErrorHandler. |
protected reactor.core.publisher.Flux<org.springframework.messaging.Message<?>> |
getPollingFlux() |
protected java.lang.String |
getResourceKey()
Return the key under which the resource will be made available as an
attribute on the
IntegrationResourceHolder. |
protected java.lang.Object |
getResourceToBind()
Return a resource (MessageSource etc) to bind when using transaction
synchronization.
|
protected java.util.concurrent.Executor |
getTaskExecutor() |
protected abstract void |
handleMessage(org.springframework.messaging.Message<?> message)
Handle a message.
|
protected boolean |
isReactive() |
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 boolean |
isSyncExecutor() |
protected void |
onInit()
Subclasses may implement this for initialization logic.
|
protected abstract org.springframework.messaging.Message<?> |
receiveMessage()
Obtain the next message (if one is available).
|
void |
setAdviceChain(java.util.List<org.aopalliance.aop.Advice> adviceChain) |
void |
setBeanClassLoader(java.lang.ClassLoader classLoader) |
void |
setErrorHandler(org.springframework.util.ErrorHandler errorHandler) |
void |
setMaxMessagesPerPoll(long maxMessagesPerPoll) |
void |
setTaskExecutor(java.util.concurrent.Executor taskExecutor) |
void |
setTransactionSynchronizationFactory(TransactionSynchronizationFactory transactionSynchronizationFactory) |
void |
setTrigger(org.springframework.scheduling.Trigger trigger) |
destroy, doStop, getPhase, getRole, isAutoStartup, isRunning, setAutoStartup, setPhase, setRole, setTaskScheduler, start, stop, stopafterPropertiesSet, extractTypeIfPossible, generateId, getApplicationContext, getApplicationContextId, getBeanFactory, getChannelResolver, getComponentName, getComponentType, getConversionService, getExpression, getIntegrationProperties, getIntegrationProperty, getMessageBuilderFactory, getTaskScheduler, isInitialized, setApplicationContext, setBeanFactory, setBeanName, setChannelResolver, setComponentName, setConversionService, setMessageBuilderFactory, setPrimaryExpression, toStringpublic void setTaskExecutor(java.util.concurrent.Executor taskExecutor)
protected java.util.concurrent.Executor getTaskExecutor()
protected boolean isSyncExecutor()
public void setTrigger(org.springframework.scheduling.Trigger trigger)
public void setAdviceChain(java.util.List<org.aopalliance.aop.Advice> adviceChain)
public void setMaxMessagesPerPoll(long maxMessagesPerPoll)
public void setErrorHandler(org.springframework.util.ErrorHandler errorHandler)
public void setBeanClassLoader(java.lang.ClassLoader classLoader)
setBeanClassLoader in interface org.springframework.beans.factory.BeanClassLoaderAwarepublic void setTransactionSynchronizationFactory(TransactionSynchronizationFactory transactionSynchronizationFactory)
public org.springframework.messaging.MessageChannel getDefaultErrorChannel()
MessagePublishingErrorHandler.protected java.lang.ClassLoader getBeanClassLoader()
protected boolean isReceiveOnlyAdvice(org.aopalliance.aop.Advice advice)
receiveMessage() operation
rather than the whole poll.advice - The advice.protected void applyReceiveOnlyAdviceChain(java.util.Collection<org.aopalliance.aop.Advice> chain)
receiveMessage() calls.chain - the advice chain Collection.protected boolean isReactive()
protected reactor.core.publisher.Flux<org.springframework.messaging.Message<?>> getPollingFlux()
protected void onInit()
IntegrationObjectSupportonInit in class AbstractEndpointprotected void doStart()
AbstractEndpointAbstractEndpoint.lifecycleLock.doStart in class AbstractEndpointprotected void doStop()
AbstractEndpointAbstractEndpoint.lifecycleLock.doStop in class AbstractEndpointprotected abstract org.springframework.messaging.Message<?> receiveMessage()
protected abstract void handleMessage(org.springframework.messaging.Message<?> message)
message - The message.protected java.lang.Object getResourceToBind()
protected java.lang.String getResourceKey()
IntegrationResourceHolder. The default
ExpressionEvaluatingTransactionSynchronizationProcessor
makes this attribute available as a variable in SpEL expressions.