redeliveryhandler.java

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

JAVA
52
字号
/* * $Id: RedeliveryHandler.java 11967 2008-06-05 20:32:19Z 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.transport.jms;import org.mule.api.MessagingException;import javax.jms.JMSException;import javax.jms.Message;/** * <code>RedeliveryHandler</code> is used to control how redelivered messages are * processed by a connector. Typically, a messsage will be re-tried once or twice * before throwing an exception. Then the exception strategy on the connector can be * used to forward the message to a JMS queue or log the failure. */public interface RedeliveryHandler{    /**     * The connector associated with this handler is set before     * <code>handleRedelivery()</code> is called     *      * @param connector the connector associated with this handler     */    public void setConnector(JmsConnector connector);    /**     * Process the redelivered message. If the JMS receiver should process the     * message, it should be returned. Otherwise the connector should throw a     * {@link MessageRedeliveredException} to indicate that the message should be     * handled by the connector's exception handler.     *      * @param message     * @throws JMSException if properties cannot be read from the JMSMessage     * @throws MessageRedeliveredException should be thrown if the message should be     *             handled by the connection exception handler     * @throws MessagingException if there is a problem reading or proessing the     *             message     */    public void handleRedelivery(Message message)        throws JMSException, MessageRedeliveredException, MessagingException;}

⌨️ 快捷键说明

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