public class EventDrivenConsumer extends AbstractEndpoint implements IntegrationConsumer
MessageHandler implementation to a SubscribableChannel.lifecycleCondition, lifecycleLockEXPRESSION_PARSER, logger| Constructor and Description |
|---|
EventDrivenConsumer(org.springframework.messaging.SubscribableChannel inputChannel,
org.springframework.messaging.MessageHandler handler) |
| 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.
|
org.springframework.messaging.MessageHandler |
getHandler()
Return the consumer's handler.
|
org.springframework.messaging.MessageChannel |
getInputChannel()
Return the input channel.
|
org.springframework.messaging.MessageChannel |
getOutputChannel()
Return the output channel (may be null).
|
destroy, doStop, getPhase, getRole, isAutoStartup, isRunning, onInit, setAutoStartup, setPhase, setRole, setTaskScheduler, start, stop, stopafterPropertiesSet, extractTypeIfPossible, getApplicationContext, getApplicationContextId, getBeanFactory, getChannelResolver, getComponentName, getComponentType, getConversionService, getExpression, getIntegrationProperties, getIntegrationProperty, getMessageBuilderFactory, getTaskScheduler, isInitialized, setApplicationContext, setBeanFactory, setBeanName, setChannelResolver, setComponentName, setConversionService, setMessageBuilderFactory, setPrimaryExpression, toStringclone, equals, finalize, getClass, hashCode, notify, notifyAll, wait, wait, waitgetComponentName, getComponentTypepublic EventDrivenConsumer(org.springframework.messaging.SubscribableChannel inputChannel,
org.springframework.messaging.MessageHandler handler)
public org.springframework.messaging.MessageChannel getInputChannel()
IntegrationConsumergetInputChannel in interface IntegrationConsumerpublic org.springframework.messaging.MessageChannel getOutputChannel()
IntegrationConsumergetOutputChannel in interface IntegrationConsumerpublic org.springframework.messaging.MessageHandler getHandler()
IntegrationConsumergetHandler in interface IntegrationConsumerprotected void doStart()
AbstractEndpointAbstractEndpoint.lifecycleLock.doStart in class AbstractEndpointprotected void doStop()
AbstractEndpointAbstractEndpoint.lifecycleLock.doStop in class AbstractEndpoint