|
Spring Integration | ||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
java.lang.Object org.springframework.integration.context.IntegrationObjectSupport org.springframework.integration.endpoint.AbstractEndpoint org.springframework.integration.endpoint.AbstractPollingEndpoint
public abstract class AbstractPollingEndpoint
Field Summary |
---|
Fields inherited from class org.springframework.integration.context.IntegrationObjectSupport |
---|
logger |
Constructor Summary | |
---|---|
AbstractPollingEndpoint()
|
Method Summary | |
---|---|
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.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 abstract void |
handleMessage(Message<?> message)
Handle a message. |
protected void |
onInit()
Subclasses may implement this for initialization logic. |
protected abstract 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)
|
Methods inherited from class org.springframework.integration.endpoint.AbstractEndpoint |
---|
getPhase, isAutoStartup, isRunning, setAutoStartup, setPhase, setTaskScheduler, start, stop, stop |
Methods inherited from class org.springframework.integration.context.IntegrationObjectSupport |
---|
afterPropertiesSet, getApplicationContextId, getBeanFactory, getComponentName, getComponentType, getConversionService, getTaskScheduler, setApplicationContext, setBeanFactory, setBeanName, setComponentName, setConversionService, toString |
Methods inherited from class java.lang.Object |
---|
clone, equals, finalize, getClass, hashCode, notify, notifyAll, wait, wait, wait |
Constructor Detail |
---|
public AbstractPollingEndpoint()
Method Detail |
---|
public void setTaskExecutor(java.util.concurrent.Executor taskExecutor)
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.BeanClassLoaderAware
public void setTransactionSynchronizationFactory(TransactionSynchronizationFactory transactionSynchronizationFactory)
protected void onInit()
IntegrationObjectSupport
onInit
in class IntegrationObjectSupport
protected void doStart()
AbstractEndpoint
AbstractEndpoint.lifecycleLock
.
doStart
in class AbstractEndpoint
protected void doStop()
AbstractEndpoint
AbstractEndpoint.lifecycleLock
.
doStop
in class AbstractEndpoint
protected abstract Message<?> receiveMessage()
protected abstract void handleMessage(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.
|
Spring Integration | ||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |