1 /* 2 * Copyright (c) MuleSoft, Inc. All rights reserved. http://www.mulesoft.com 3 * The software in this package is published under the terms of the CPAL v1.0 4 * license, a copy of which has been included with this distribution in the 5 * LICENSE.txt file. 6 */ 7 package org.mule.api.transport; 8 9 import org.mule.api.MuleException; 10 import org.mule.api.MuleMessage; 11 import org.mule.api.transaction.Transaction; 12 13 import java.io.OutputStream; 14 15 /** 16 * A listener used to receive Muleevents from a transport receiver. The listener can be 17 * swapped out to deliver message to other frameworks, bypassing the Mule container. 18 */ 19 public interface InternalMessageListener 20 { 21 MuleMessage onMessage(MuleMessage message, 22 Transaction trans, 23 boolean synchronous, 24 OutputStream outputStream) throws MuleException; 25 26 }