📄 messagedispatching.java
字号:
/* * $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 + Shift + D
显示快捷键
?
增大字号
Ctrl + =
减小字号
Ctrl + -