org.mule.construct
Class DynamicPipelineMessageProcessor
java.lang.Object
org.mule.processor.AbstractInterceptingMessageProcessorBase
org.mule.processor.AbstractInterceptingMessageProcessor
org.mule.construct.DynamicPipelineMessageProcessor
- All Implemented Interfaces:
- AnnotatedObject, MuleContextAware, DynamicPipeline, InterceptingMessageProcessor, MessageProcessor, MessageProcessorContainer, MessageSource
public class DynamicPipelineMessageProcessor
- extends AbstractInterceptingMessageProcessor
- implements DynamicPipeline
Experimental implementation that supports a single dynamic pipeline due to restrictions
imposed by intercepting message processors and their lifecycle.
If more than one client tries to use the functionality the 2nd one will fail due to
pipeline ID verification.
DynamicPipelineMessageProcessor
public DynamicPipelineMessageProcessor(Flow flow)
process
public MuleEvent process(MuleEvent event)
throws MuleException
- Description copied from interface:
MessageProcessor
- Invokes the MessageProcessor.
- Specified by:
process in interface MessageProcessor
- Parameters:
event - MuleEvent to be processed
- Returns:
- optional response MuleEvent
- Throws:
MuleException
setListener
public void setListener(MessageProcessor next)
- Description copied from interface:
MessageSource
- Set the MessageProcessor listener on a message source which will be invoked
when a message is received or generated.
- Specified by:
setListener in interface MessageSource- Overrides:
setListener in class AbstractInterceptingMessageProcessorBase
dynamicPipeline
public DynamicPipelineBuilder dynamicPipeline(String id)
throws DynamicPipelineException
- Description copied from interface:
DynamicPipeline
- Provide access to a
DynamicPipelineBuilder that allows modifying
the dynamic pipeline injecting message processors and resetting the pipeline
- Specified by:
dynamicPipeline in interface DynamicPipeline
- Parameters:
id - dynamic pipeline ID
- Returns:
- a DynamicPipelineBuilder that allows modifying the dynamic pipeline
- Throws:
DynamicPipelineException - if the pipeline ID is not valid
Copyright © 2003–2014 MuleSoft, Inc.. All rights reserved.