nestedrouter.java

来自「提供ESB 应用mule源代码 提供ESB 应用mule源代码」· Java 代码 · 共 64 行

JAVA
64
字号
/* * $Id: NestedRouter.java 12889 2008-10-03 20:52:49Z dfeist $ * -------------------------------------------------------------------------------------- * 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.routing;import org.mule.api.MessagingException;import org.mule.api.MuleMessage;import org.mule.api.MuleSession;import org.mule.api.endpoint.OutboundEndpoint;public interface NestedRouter extends Router{    /**     * This method is responsible for routing the Message via the MuleSession. The logic     * for this method will change for each type of router depending on expected     * behaviour. For example, a MulticastingRouter might just iterate through the     * list of assoaciated endpoints sending the message. Another type of router such     * as the ExceptionBasedRouter will hit the first endpoint, if it fails try the     * second, and so on. Most router implementations will extends the     * FilteringOutboundRouter which implements all the common logic need for a     * router.     *     * @param message the message to send via one or more endpoints on this router     * @param session the session used to actually send the event     * @return a result message if any from the invocation. If the synchronous flag     *         is false a null result will always be returned.     * @throws MessagingException if any errors occur during the sending of messages     * @see org.mule.routing.outbound.FilteringOutboundRouter     * @see org.mule.routing.outbound.ExceptionBasedRouter     * @see org.mule.routing.outbound.MulticastingRouter     *     * * @since 2.1 the synchronous argument has been removed. Instead use the synchronous attribute of the endpoint     * you are dispatching to.     */    MuleMessage route(MuleMessage message, MuleSession session) throws MessagingException;    void setEndpoint(OutboundEndpoint endpoint);        OutboundEndpoint getEndpoint();    Class getInterface();    void setInterface(Class interfaceClass);    String getMethod();    void setMethod(String method);    /**     * This wires the dynamic proxy to the service object.     *     * @param target     */    Object createProxy(Object target);}

⌨️ 快捷键说明

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