|
Spring Integration | ||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
java.lang.Objectorg.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 boolean |
doPoll()
Deprecated. Starting with Spring Integration 3.0, subclasses will not be able to override this method. Use receiveMessage() and handleMessage(Message) instead,
to separate the concerns of retrieving and processing a message.
Consider refactoring now rather than waiting for 3.0. |
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 void |
handleMessage(Message<?> message)
Handle a message. |
protected void |
onInit()
Subclasses may implement this for initialization logic. |
protected 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 |
setPollerMetadata(PollerMetadata pollerMetadata)
Deprecated. As of release 2.0.2, use individual setters |
void |
setTaskExecutor(java.util.concurrent.Executor taskExecutor)
|
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, getBeanFactory, getComponentName, getComponentType, getConversionService, getTaskScheduler, 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 |
---|
@Deprecated public void setPollerMetadata(PollerMetadata pollerMetadata)
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
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
@Deprecated protected boolean doPoll()
receiveMessage()
and handleMessage(Message)
instead,
to separate the concerns of retrieving and processing a message.
Consider refactoring now rather than waiting for 3.0.
protected Message<?> receiveMessage()
protected void handleMessage(Message<?> message)
message
- The message.
|
Spring Integration | ||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |