messagedispatching.java
来自「提供ESB 应用mule源代码 提供ESB 应用mule源代码」· Java 代码 · 共 46 行
JAVA
46 行
/* * $Id: MessageDispatching.java 11079 2008-02-27 15:52:01Z 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.MuleEvent;import org.mule.api.MuleMessage;/** * Define generic methods for dispatching events. * The exact behaviour of the action is defined by the implementing class. * * @see org.mule.api.endpoint.OutboundEndpoint * @see org.mule.api.transport.MessageDispatcher */public interface MessageDispatching{ long RECEIVE_WAIT_INDEFINITELY = 0; long RECEIVE_NO_WAIT = -1; /** * Dispatches an event from the endpoint to the external system * * @param event The event to dispatch * @throws DispatchException if the event fails to be dispatched */ void dispatch(MuleEvent event) throws DispatchException; /** * Sends an event from the endpoint to the external system * * @param event The event to send * @return event the response form the external system wrapped in a MuleEvent * @throws DispatchException if the event fails to be dispatched */ MuleMessage send(MuleEvent event) throws DispatchException;}
⌨️ 快捷键说明
复制代码Ctrl + C
搜索代码Ctrl + F
全屏模式F11
增大字号Ctrl + =
减小字号Ctrl + -
显示快捷键?