Class EventDrivenConsumer
java.lang.Object
org.springframework.integration.context.IntegrationObjectSupport
org.springframework.integration.endpoint.AbstractEndpoint
org.springframework.integration.endpoint.EventDrivenConsumer
- All Implemented Interfaces:
- Aware,- BeanFactoryAware,- BeanNameAware,- DisposableBean,- InitializingBean,- ApplicationContextAware,- Lifecycle,- Phased,- SmartLifecycle,- ExpressionCapable,- IntegrationConsumer,- NamedComponent,- ManageableLifecycle,- ManageableSmartLifecycle
Message Endpoint that connects any 
MessageHandler implementation to a SubscribableChannel.- Author:
- Mark Fisher, Oleg Zhurakousky, Gary Russell, Artem Bilan
- 
Field SummaryFields inherited from class org.springframework.integration.endpoint.AbstractEndpointlifecycleCondition, lifecycleLockFields inherited from class org.springframework.integration.context.IntegrationObjectSupportEXPRESSION_PARSER, loggerFields inherited from interface org.springframework.context.SmartLifecycleDEFAULT_PHASE
- 
Constructor SummaryConstructorsConstructorDescriptionEventDrivenConsumer(SubscribableChannel inputChannel, MessageHandler handler) 
- 
Method SummaryModifier and TypeMethodDescriptionprotected voiddoStart()Subclasses must implement this method with the start behavior.protected voiddoStop()Subclasses must implement this method with the stop behavior.Return the consumer's handler.Return the input channel.Return the output channel (may be null).Methods inherited from class org.springframework.integration.endpoint.AbstractEndpointdestroy, doStop, getPhase, getRole, isActive, isAutoStartup, isRunning, onInit, setAutoStartup, setPhase, setRole, start, stop, stopMethods inherited from class org.springframework.integration.context.IntegrationObjectSupportafterPropertiesSet, extractTypeIfPossible, generateId, getApplicationContext, getApplicationContextId, getBeanDescription, getBeanFactory, getBeanName, getChannelResolver, getComponentName, getComponentType, getConversionService, getExpression, getIntegrationProperties, getMessageBuilderFactory, getTaskScheduler, isInitialized, setApplicationContext, setBeanFactory, setBeanName, setChannelResolver, setComponentName, setConversionService, setMessageBuilderFactory, setPrimaryExpression, setTaskScheduler, toStringMethods inherited from class java.lang.Objectclone, equals, finalize, getClass, hashCode, notify, notifyAll, wait, wait, waitMethods inherited from interface org.springframework.integration.support.context.NamedComponentgetBeanName, getComponentName, getComponentType
- 
Constructor Details- 
EventDrivenConsumer
 
- 
- 
Method Details- 
getInputChannelDescription copied from interface:IntegrationConsumerReturn the input channel.- Specified by:
- getInputChannelin interface- IntegrationConsumer
- Returns:
- the input channel.
 
- 
getOutputChannelDescription copied from interface:IntegrationConsumerReturn the output channel (may be null).- Specified by:
- getOutputChannelin interface- IntegrationConsumer
- Returns:
- the output channel.
 
- 
getHandlerDescription copied from interface:IntegrationConsumerReturn the consumer's handler.- Specified by:
- getHandlerin interface- IntegrationConsumer
- Returns:
- the handler.
 
- 
doStartprotected void doStart()Description copied from class:AbstractEndpointSubclasses must implement this method with the start behavior. This method will be invoked while holding theAbstractEndpoint.lifecycleLock.- Specified by:
- doStartin class- AbstractEndpoint
 
- 
doStopprotected void doStop()Description copied from class:AbstractEndpointSubclasses must implement this method with the stop behavior. This method will be invoked while holding theAbstractEndpoint.lifecycleLock.- Specified by:
- doStopin class- AbstractEndpoint
 
 
-