public class Flow extends AbstractPipeline implements MessageProcessor, StageNameSourceProvider, DynamicPipeline
AbstractPipeline adds the following functionality:
ProcessingStrategy that determines how message
processors are processed. The default ProcessingStrategy is AsynchronousProcessingStrategy.
With this strategy when messages are received from a one-way message source and there is no current
transactions message processing in another thread asynchronously.AbstractPipeline.ProcessIfPipelineStartedMessageProcessormessageProcessors, messageSource, pipeline, processingStrategyexceptionListener, INITIAL_STATE_STARTED, INITIAL_STATE_STOPPED, initialState, lifecycleManager, logger, messageInfoMapping, muleContext, name, statisticsPHASE_NAMEPHASE_NAMEPHASE_NAMEPHASE_NAMEPROPERTY_NAME| Constructor and Description |
|---|
Flow(String name,
MuleContext muleContext) |
| Modifier and Type | Method and Description |
|---|---|
protected void |
configureMessageProcessors(MessageProcessorChainBuilder builder) |
protected void |
configurePostProcessors(MessageProcessorChainBuilder builder) |
protected void |
configurePreProcessors(MessageProcessorChainBuilder builder) |
protected void |
configureStatistics() |
protected ProcessingStrategy |
createDefaultProcessingStrategy()
A fallback method for creating a
ProcessingStrategy to
be used in case the user hasn't specified one through either
AbstractPipeline.setProcessingStrategy(ProcessingStrategy),
through MuleConfiguration.getDefaultProcessingStrategy()
or the MuleProperties.MULE_DEFAULT_PROCESSING_STRATEGY
system property |
protected void |
doInitialise() |
protected void |
doStart() |
protected void |
doStop() |
DynamicPipelineBuilder |
dynamicPipeline(String id)
Provide access to a
DynamicPipelineBuilder that allows modifying
the dynamic pipeline injecting message processors and resetting the pipeline |
StageNameSource |
getAsyncStageNameSource()
Provides a
StageNameSource |
StageNameSource |
getAsyncStageNameSource(String asyncName)
Returns a
StageNameSource that
takes the given paramter into consideration when generating the name |
String |
getConstructType() |
WorkManager |
getWorkManager() |
MuleEvent |
process(MuleEvent event)
Invokes the MessageProcessor.
|
void |
setEndpoint(InboundEndpoint endpoint)
Deprecated.
use setMessageSource(MessageSource) instead
|
addMessageProcessorPathElements, createPipeline, doDispose, getMessageProcessors, getMessageSource, getProcessingStrategy, getProcessorPath, initialiseProcessingStrategy, isRedeliveryPolicyConfigured, isSynchronous, setMessageProcessors, setMessageSource, setProcessingStrategy, validateConstructdispose, disposeIfDisposable, getExceptionListener, getInitialState, getLifecycleState, getMessageInfoMapping, getMuleContext, getName, getStatistics, initialise, initialiseIfInitialisable, injectExceptionHandler, injectFlowConstructMuleContext, isStarted, isStopped, isStopping, setExceptionListener, setInitialState, setMessageInfoMapping, start, startIfStartable, stop, stopIfStoppable, toStringgetAnnotation, getAnnotations, setAnnotationsclone, equals, finalize, getClass, hashCode, notify, notifyAll, wait, wait, waitgetExceptionListener, getMessageInfoMapping, getMuleContext, getStatisticsgetNamegetLifecycleStatepublic Flow(String name, MuleContext muleContext)
protected void doInitialise()
throws MuleException
doInitialise in class AbstractPipelineMuleExceptionprotected void doStart()
throws MuleException
doStart in class AbstractPipelineMuleExceptionprotected void doStop()
throws MuleException
doStop in class AbstractPipelineMuleExceptionpublic MuleEvent process(MuleEvent event) throws MuleException
MessageProcessorprocess in interface MessageProcessorevent - MuleEvent to be processedMuleExceptionprotected void configurePreProcessors(MessageProcessorChainBuilder builder) throws MuleException
configurePreProcessors in class AbstractPipelineMuleExceptionprotected void configurePostProcessors(MessageProcessorChainBuilder builder) throws MuleException
configurePostProcessors in class AbstractPipelineMuleExceptionprotected ProcessingStrategy createDefaultProcessingStrategy()
ProcessingStrategy to
be used in case the user hasn't specified one through either
AbstractPipeline.setProcessingStrategy(ProcessingStrategy),
through MuleConfiguration.getDefaultProcessingStrategy()
or the MuleProperties.MULE_DEFAULT_PROCESSING_STRATEGY
system propertycreateDefaultProcessingStrategy in class AbstractPipelineDefaultFlowProcessingStrategy@Deprecated public void setEndpoint(InboundEndpoint endpoint)
public String getConstructType()
getConstructType in class AbstractFlowConstructprotected void configureStatistics()
configureStatistics in class AbstractFlowConstructprotected void configureMessageProcessors(MessageProcessorChainBuilder builder) throws MuleException
configureMessageProcessors in class AbstractPipelineMuleExceptionpublic StageNameSource getAsyncStageNameSource()
StageNameSourcegetAsyncStageNameSource in interface StageNameSourceProviderStageNameSourcepublic StageNameSource getAsyncStageNameSource(String asyncName)
StageNameSource that
takes the given paramter into consideration when generating the namegetAsyncStageNameSource in interface StageNameSourceProviderasyncName - a name to be consider when building the final nameStageNameSourcepublic DynamicPipelineBuilder dynamicPipeline(String id) throws DynamicPipelineException
DynamicPipelineDynamicPipelineBuilder that allows modifying
the dynamic pipeline injecting message processors and resetting the pipelinedynamicPipeline in interface DynamicPipelineid - dynamic pipeline IDDynamicPipelineException - if the pipeline ID is not validpublic WorkManager getWorkManager()
Copyright © 2003–2015 MuleSoft, Inc.. All rights reserved.