1 /* 2 * $Id: RequestReplyRequesterMessageProcessor.java 22561 2011-07-26 19:59:39Z mike.schilling $ 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.processor; 12 13 import org.mule.api.MuleEvent; 14 import org.mule.api.source.MessageSource; 15 16 /** 17 * Processes a {@link MuleEvent} by invoking the next {@link MessageProcessor} but 18 * receiving the reply, which is turn is returned from this MessageProcessor from a 19 * seperate {@link MessageSource} rather than using the return value of the 20 * <code>next</code> MessageProcessor invocation. Because two seperate channels are 21 * used, most implementations will want to implement the concept of a timeout which 22 * defines how long a reply should be waited for. 23 * 24 * @since 3.0 25 */ 26 public interface RequestReplyRequesterMessageProcessor 27 { 28 /** 29 * @param replyMessageSource the message source that will be used to receive the reply message 30 */ 31 void setReplySource(MessageSource replyMessageSource); 32 }