public abstract class AbstractPipeline extends AbstractFlowConstruct implements Pipeline
AbstractFlowConstruct that allows a list of Processors that will be used to process
messages to be configured. These MessageProcessors are chained together using the DefaultMessageProcessorChainBuilder.
If no message processors are configured then the source message is simply returned.| Modifier and Type | Field and Description |
|---|---|
protected List<Processor> |
messageProcessors |
protected MessageSource |
messageSource |
protected MessageProcessorChain |
pipeline |
protected ProcessingStrategy |
processingStrategy |
protected ProcessingStrategyFactory |
processingStrategyFactory |
protected SchedulerService |
schedulerService |
protected Sink |
sink |
protected StreamingManager |
streamingManager |
exceptionListener, initialState, LOGGER, muleContext, name, statistics| Constructor and Description |
|---|
AbstractPipeline(String name,
MuleContext muleContext) |
configureStatistics, dispose, disposeIfDisposable, getConstructType, getExceptionListener, getInitialState, getLifecycleState, getMuleContext, getName, getServerId, getStatistics, getUniqueIdString, initialise, initialiseIfInitialisable, injectExceptionHandler, injectFlowConstructMuleContext, isStarted, isStopped, isStopping, setExceptionListener, setInitialState, start, startIfStartable, stop, stopIfStoppable, toString, validateConstructgetAnnotation, getAnnotations, getLocation, setAnnotationsclone, equals, finalize, getClass, hashCode, notify, notifyAll, wait, wait, waitgetExceptionListener, getMuleContext, getServerId, getStatistics, getUniqueIdStringgetLifecycleStateprotected MessageSource messageSource
protected MessageProcessorChain pipeline
protected final SchedulerService schedulerService
protected StreamingManager streamingManager
protected ProcessingStrategyFactory processingStrategyFactory
protected ProcessingStrategy processingStrategy
protected Sink sink
public AbstractPipeline(String name, MuleContext muleContext)
protected MessageProcessorChain createPipeline() throws org.mule.runtime.api.exception.MuleException
Processor that will process messages from the configured MessageSource .
The default implementation of this methods uses a DefaultMessageProcessorChainBuilder and allows a chain of
Processors to be configured using the
configureMessageProcessors(org.mule.runtime.core.api.processor.MessageProcessorChainBuilder) method but if you wish
to use another MessageProcessorBuilder or just a single Processor then this method can be overridden and
return a single Processor instead.
org.mule.runtime.api.exception.MuleExceptionprotected ProcessingStrategyFactory createDefaultProcessingStrategyFactory()
ProcessingStrategyFactory to be used in case the user hasn't specified one through
either setProcessingStrategyFactory(ProcessingStrategyFactory), through
MuleConfiguration.getDefaultProcessingStrategyFactory() or the
MuleProperties.MULE_DEFAULT_PROCESSING_STRATEGY system propertyDirectProcessingStrategyFactoryprotected void configurePreProcessors(MessageProcessorChainBuilder builder) throws org.mule.runtime.api.exception.MuleException
org.mule.runtime.api.exception.MuleExceptionprotected void configurePostProcessors(MessageProcessorChainBuilder builder) throws org.mule.runtime.api.exception.MuleException
org.mule.runtime.api.exception.MuleExceptionpublic void setMessageProcessors(List<Processor> messageProcessors)
setMessageProcessors in interface Pipelinepublic List<Processor> getMessageProcessors()
getMessageProcessors in interface Pipelinepublic MessageSource getMessageSource()
getMessageSource in interface Pipelinepublic void setMessageSource(MessageSource messageSource)
setMessageSource in interface Pipelinepublic boolean isSynchronous()
ProcessingDescriptorisSynchronous in interface ProcessingDescriptorpublic ProcessingStrategyFactory getProcessingStrategyFactory()
getProcessingStrategyFactory in interface PipelineProcessingStrategy used on the pipeline.public void setProcessingStrategyFactory(ProcessingStrategyFactory processingStrategyFactory)
setProcessingStrategyFactory in interface Pipelinepublic ProcessingStrategy getProcessingStrategy()
getProcessingStrategy in interface Pipelineprotected void doInitialise()
throws org.mule.runtime.api.exception.MuleException
doInitialise in class AbstractFlowConstructorg.mule.runtime.api.exception.MuleExceptionprotected ReactiveProcessor processFlowFunction()
protected void configureMessageProcessors(MessageProcessorChainBuilder builder) throws org.mule.runtime.api.exception.MuleException
org.mule.runtime.api.exception.MuleExceptionprotected boolean isRedeliveryPolicyConfigured()
protected void doStart()
throws org.mule.runtime.api.exception.MuleException
doStart in class AbstractFlowConstructorg.mule.runtime.api.exception.MuleExceptionprotected void doStop()
throws org.mule.runtime.api.exception.MuleException
doStop in class AbstractFlowConstructorg.mule.runtime.api.exception.MuleExceptionprotected void doDispose()
doDispose in class AbstractFlowConstructprotected boolean useBlockingCodePath()
public Map<String,EventContext> getSerializationEventContextCache()
PipelineEventContext instances for Event's that have been serialized. Entries will be removed on
deserialization or in the last resort purged through garbage collection when there are no longer any hard references to the
EventContext left. EventContext's for Event's that are not serialized will never be added to this
cache.getSerializationEventContextCache in interface PipelineEventContext.getId()Copyright © 2003–2017 MuleSoft, Inc.. All rights reserved.