org.mule.transport.jms.redelivery
Class CountingRedeliveryHandler
java.lang.Object
org.mule.transport.jms.redelivery.AbstractRedeliveryHandler
org.mule.transport.jms.redelivery.CountingRedeliveryHandler
- All Implemented Interfaces:
- RedeliveryHandler
public class CountingRedeliveryHandler
- extends AbstractRedeliveryHandler
This redelivery handler will keep counting the redelivery attempts for each message redelivered. Used for
providers not implementing the JMSXDeliveryCount property support.
|
Field Summary |
protected static org.apache.commons.logging.Log |
logger
logger used by this class |
|
Method Summary |
void |
handleRedelivery(javax.jms.Message message,
org.mule.api.endpoint.InboundEndpoint endpoint,
org.mule.api.construct.FlowConstruct flow)
process the redelivered message. |
| Methods inherited from class java.lang.Object |
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
logger
protected static final org.apache.commons.logging.Log logger
- logger used by this class
CountingRedeliveryHandler
public CountingRedeliveryHandler()
handleRedelivery
public void 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
- 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.
- Specified by:
handleRedelivery in interface RedeliveryHandler- Specified by:
handleRedelivery in class AbstractRedeliveryHandler
- Parameters:
message - the redelivered messageendpoint - from which the message was receivedflow - in which the exception occured, this is used to obtain the
appropriate exception handler
- Throws:
javax.jms.JMSException - if properties cannot be read from the JMSMessage
MessageRedeliveredException - should be thrown if the message should be
handled by the connection exception handler
org.mule.api.MuleException - if there is a problem reading or proessing the message
Copyright © 2003–2014 MuleSoft, Inc.. All rights reserved.