public abstract class AbstractRedeliveryHandler extends Object implements RedeliveryHandler
Modifier and Type | Field and Description |
---|---|
protected JmsConnector |
connector |
Constructor and Description |
---|
AbstractRedeliveryHandler() |
Modifier and Type | Method and Description |
---|---|
protected MuleMessage |
createMuleMessage(Message message,
MuleContext muleContext) |
abstract void |
handleRedelivery(Message message,
InboundEndpoint endpoint,
FlowConstruct flow)
Process the redelivered message.
|
void |
setConnector(JmsConnector connector)
The connector associated with this handler is set before
handleRedelivery() is called |
protected JmsConnector connector
public abstract void handleRedelivery(Message message, InboundEndpoint endpoint, FlowConstruct flow) throws JMSException, MuleException
RedeliveryHandler
MessageRedeliveredException
to indicate that the message should be
handled by the connector's exception handler.handleRedelivery
in interface RedeliveryHandler
message
- the redelivered messageendpoint
- from which the message was receivedflow
- in which the exception occured, this is used to obtain the
appropriate exception handlerJMSException
- if properties cannot be read from the JMSMessageMessageRedeliveredException
- should be thrown if the message should be
handled by the connection exception handlerMuleException
- if there is a problem reading or proessing the messagepublic void setConnector(JmsConnector connector)
handleRedelivery()
is calledsetConnector
in interface RedeliveryHandler
connector
- the connector associated with this handlerprotected MuleMessage createMuleMessage(Message message, MuleContext muleContext)
Copyright © 2003–2016 MuleSoft, Inc.. All rights reserved.