⭐ 欢迎来到虫虫下载站! | 📦 资源下载 📁 资源专辑 ℹ️ 关于我们
⭐ 虫虫下载站

📄 messagereceiver.java

📁 提供ESB 应用mule源代码 提供ESB 应用mule源代码
💻 JAVA
字号:
/* * $Id: MessageReceiver.java 12606 2008-09-03 17:09:08Z tcarlson $ * -------------------------------------------------------------------------------------- * Copyright (c) MuleSource, Inc.  All rights reserved.  http://www.mulesource.com * * The software in this package is published under the terms of the CPAL v1.0 * license, a copy of which has been included with this distribution in the * LICENSE.txt file. */package org.mule.api.transport;import org.mule.api.MuleException;import org.mule.api.MuleMessage;import org.mule.api.endpoint.EndpointURI;import org.mule.api.endpoint.ImmutableEndpoint;import org.mule.api.endpoint.InboundEndpoint;import org.mule.api.service.Service;import org.mule.api.transaction.Transaction;import java.io.OutputStream;/** * <code>MessageReceiver</code> is used to receive data from an external system. * Typically an implementation of this interface will also implement the listener * interface for the external system. For example to listen to a JMS destination the * developer would also implement javax.jms.MessageListener. The endpoint (which * creates the MessageReceiver) will then register the receiver with the JMS * server. Where a listener interface is not availiable the derived * <code>MessageReceiver</code> will implement the code necessary to receive * data from the external system. For example, the file endpoint will poll a * specified directory for its data. */public interface MessageReceiver extends Connectable{    /**     * @return the receivers endpoint     */    InboundEndpoint getEndpoint();    /**     * @return the service associated with the receiver     */    Service getService();    /**     * @param endpoint the endpoint to listen on     * @see ImmutableEndpoint     */    void setEndpoint(InboundEndpoint endpoint);    /**     * @param service the service to associate with the receiver. When data is     *            received the service <code>dispatchEvent</code> or     *            <code>sendEvent</code> is used to dispatch the data to the     *            relivant UMO.     */    //void setService(Service service);    //Connector getConnector();    /**     * The endpointUri that this receiver listens on     *      * @return     */    EndpointURI getEndpointURI();    String getReceiverKey();    void setReceiverKey(String key);    MuleMessage routeMessage(MuleMessage message) throws MuleException;    MuleMessage routeMessage(MuleMessage message, boolean synchronous) throws MuleException;    MuleMessage routeMessage(MuleMessage message, Transaction trans, boolean synchronous)            throws MuleException;    MuleMessage routeMessage(MuleMessage message, OutputStream outputStream) throws MuleException;    MuleMessage routeMessage(MuleMessage message, boolean synchronous, OutputStream outputStream)        throws MuleException;    MuleMessage routeMessage(MuleMessage message,                            Transaction trans,                            boolean synchronous,                            OutputStream outputStream) throws MuleException;}

⌨️ 快捷键说明

复制代码 Ctrl + C
搜索代码 Ctrl + F
全屏模式 F11
切换主题 Ctrl + Shift + D
显示快捷键 ?
增大字号 Ctrl + =
减小字号 Ctrl + -