public interface RedeliveryHandler
RedeliveryHandler 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.| Modifier and Type | Method and Description |
|---|---|
void |
handleRedelivery(javax.jms.Message message,
org.mule.api.endpoint.InboundEndpoint endpoint,
org.mule.api.construct.FlowConstruct flow)
Process the redelivered message.
|
void |
setConnector(JmsConnector connector)
The connector associated with this handler is set before
handleRedelivery() is called |
void setConnector(JmsConnector connector)
handleRedelivery() is calledconnector - the connector associated with this handlervoid handleRedelivery(javax.jms.Message message,
org.mule.api.endpoint.InboundEndpoint endpoint,
org.mule.api.construct.FlowConstruct flow)
throws javax.jms.JMSException,
org.mule.api.MuleException
MessageRedeliveredException to indicate that the message should be
handled by the connector's exception handler.message - the redelivered messageendpoint - from which the message was receivedflow - in which the exception occured, this is used to obtain the
appropriate exception handlerjavax.jms.JMSException - if properties cannot be read from the JMSMessageMessageRedeliveredException - should be thrown if the message should be
handled by the connection exception handlerorg.mule.api.MuleException - if there is a problem reading or proessing the messageCopyright © 2003–2015 MuleSoft, Inc.. All rights reserved.