View Javadoc

1   /*
2    * $Id: Pipeline.java 22557 2011-07-25 22:48:27Z dfeist $
3    * --------------------------------------------------------------------------------------
4    * Copyright (c) MuleSoft, Inc.  All rights reserved.  http://www.mulesoft.com
5    *
6    * The software in this package is published under the terms of the CPAL v1.0
7    * license, a copy of which has been included with this distribution in the
8    * LICENSE.txt file.
9    */
10  
11  package org.mule.api.construct;
12  
13  import org.mule.api.processor.MessageProcessor;
14  import org.mule.api.processor.ProcessingStrategy;
15  import org.mule.api.source.MessageSource;
16  
17  import java.util.List;
18  
19  /**
20   * A pipeline has an ordered list of {@link MessageProcessor}'s that are invoked in order to processor new
21   * messages received from it's {@link MessageSource}
22   */
23  public interface Pipeline extends FlowConstruct
24  {
25  
26      public void setMessageSource(MessageSource messageSource);
27  
28      public MessageSource getMessageSource();
29  
30      public void setMessageProcessors(List<MessageProcessor> messageProcessors);
31  
32      public List<MessageProcessor> getMessageProcessors();
33  
34      public void setProcessingStrategy(ProcessingStrategy processingStrategy);
35  
36      public ProcessingStrategy getProcessingStrategy();
37      
38  }