public abstract class AbstractRedeliveryPolicy extends AbstractInterceptingMessageProcessor implements MessageProcessor, Lifecycle, MuleContextAware, FlowConstructAware, MessagingExceptionHandlerAware
| Modifier and Type | Field and Description |
|---|---|
protected MessageProcessor |
deadLetterQueue |
protected FlowConstruct |
flowConstruct |
protected int |
maxRedeliveryCount |
static int |
REDELIVERY_FAIL_ON_FIRST |
logger, muleContext, next, notificationHandlerPHASE_NAMEPHASE_NAMEPHASE_NAMEPHASE_NAMEPROPERTY_NAME| Constructor and Description |
|---|
AbstractRedeliveryPolicy() |
| Modifier and Type | Method and Description |
|---|---|
void |
dispose()
A lifecycle method where implementor should free up any resources.
|
int |
getMaxRedeliveryCount() |
MessageProcessor |
getTheFailedMessageProcessor() |
void |
initialise()
Method used to perform any initialisation work.
|
void |
setDeadLetterQueue(MessageProcessorFilterPair failedMessageProcessorPair) |
void |
setFlowConstruct(FlowConstruct flowConstruct) |
void |
setMaxRedeliveryCount(int maxRedeliveryCount) |
void |
setMessagingExceptionHandler(MessagingExceptionHandler messagingExceptionHandler) |
void |
setMuleContext(MuleContext context) |
void |
start() |
void |
stop() |
addMessageProcessorPathElements, getListener, getMuleContext, isEventValid, processNext, setListener, toStringgetAnnotation, getAnnotations, setAnnotationsclone, equals, finalize, getClass, hashCode, notify, notifyAll, wait, wait, waitprocesssetListenerprotected FlowConstruct flowConstruct
protected int maxRedeliveryCount
protected MessageProcessor deadLetterQueue
public static final int REDELIVERY_FAIL_ON_FIRST
public void setFlowConstruct(FlowConstruct flowConstruct)
setFlowConstruct in interface FlowConstructAwarepublic void initialise()
throws InitialisationException
InitialisableInitialisationException should be thrown,
causing the Mule instance to shutdown. If the error is recoverable, say by
retrying to connect, a RecoverableException should be thrown.
There is no guarantee that by throwing a Recoverable exception that the Mule
instance will not shut down.initialise in interface InitialisableInitialisationException - if a fatal error occurs causing the Mule instance to shutdownRecoverableException - if an error occurs that can be recovered frompublic void start()
throws MuleException
start in interface StartableMuleExceptionpublic void stop()
throws MuleException
stop in interface StoppableMuleExceptionpublic void dispose()
Disposabledispose in interface Disposablepublic int getMaxRedeliveryCount()
public void setMaxRedeliveryCount(int maxRedeliveryCount)
public MessageProcessor getTheFailedMessageProcessor()
public void setDeadLetterQueue(MessageProcessorFilterPair failedMessageProcessorPair)
public void setMessagingExceptionHandler(MessagingExceptionHandler messagingExceptionHandler)
setMessagingExceptionHandler in interface MessagingExceptionHandlerAwarepublic void setMuleContext(MuleContext context)
setMuleContext in interface MuleContextAwaresetMuleContext in class AbstractInterceptingMessageProcessorBaseCopyright © 2003–2015 MuleSoft, Inc.. All rights reserved.