| org.mule.transport.jms.RedeliveryHandler
All known Subclasses: org.mule.transport.jms.DefaultRedeliveryHandler,
RedeliveryHandler | public interface RedeliveryHandler (Code) | | 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 ExceptionStrategy on the connector can be
used to forward the message to a JMS queue or log the failure.
|
handleRedelivery | public void handleRedelivery(Message message) throws JMSException, MessageRedeliveredException, MessagingException(Code) | | process the redelivered message. If the Jms receiver should process the
message, it should be returned. Otherwise the connector should throw a
MessageRedeliveredException to indicate that the message should
be handled by the connector Exception Handler.
Parameters: message - throws: JMSException - if properties cannot be read from the JMSMessage throws: MessageRedeliveredException - should be thrown if the message should behandled by the connection exception handler throws: MessagingException - if there is a problem reading or proessing themessage |
setConnector | public void setConnector(JmsConnector connector)(Code) | | The connector associated with this handler is set before
handleRedelivery() is called
Parameters: connector - the connector associated with this handler |
|
|