org.mule.exception
Class AbstractMessagingExceptionStrategy
java.lang.Object
org.mule.processor.AbstractMessageProcessorOwner
org.mule.exception.AbstractExceptionStrategy
org.mule.exception.AbstractMessagingExceptionStrategy
- All Implemented Interfaces:
- AnnotatedObject, FlowConstructAware, MuleContextAware, ExceptionHandler, MessagingExceptionHandler, Disposable, Initialisable, Lifecycle, Startable, Stoppable
- Direct Known Subclasses:
- DefaultMessagingExceptionStrategy, QuietExceptionStrategy
public abstract class AbstractMessagingExceptionStrategy
- extends AbstractExceptionStrategy
- implements MessagingExceptionHandler
Fire a notification, log exception, increment statistics, route the problematic message to a destination
if one is configured (DLQ pattern), commit or rollback transaction if one exists, close any open streams.
Methods inherited from class org.mule.exception.AbstractExceptionStrategy |
addEndpoint, closeStream, commit, doInitialise, fireNotification, fireNotification, getCommitTxFilter, getExceptionType, getMessageProcessors, getOwnedMessageProcessors, getRollbackTxFilter, initialise, isEnableNotifications, isInitialised, isRollback, logException, logFatal, removeMessageProcessor, rollback, routeException, setCommitTxFilter, setEnableNotifications, setMessageProcessors, setRollbackTxFilter |
Methods inherited from class java.lang.Object |
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
AbstractMessagingExceptionStrategy
public AbstractMessagingExceptionStrategy(MuleContext muleContext)
handleException
public MuleEvent handleException(Exception ex,
MuleEvent event,
RollbackSourceCallback rollbackMethod)
- Description copied from interface:
MessagingExceptionHandler
- Take some action when a messaging exception has occurred (i.e., there was a message in play when the exception occurred).
- Specified by:
handleException
in interface MessagingExceptionHandler
- Parameters:
ex
- which occurredevent
- which was being processed when the exception occurredrollbackMethod
- will be called if transactions are not used in order to achieve atomic message delivery
- Returns:
- new event to route on to the rest of the flow, generally with ExceptionPayload set on the message
handleException
public MuleEvent handleException(Exception ex,
MuleEvent event)
- Description copied from interface:
MessagingExceptionHandler
- Take some action when a messaging exception has occurred (i.e., there was a message in play when the exception occurred).
- Specified by:
handleException
in interface MessagingExceptionHandler
- Parameters:
ex
- which occurredevent
- which was being processed when the exception occurred
- Returns:
- new event to route on to the rest of the flow, generally with ExceptionPayload set on the message
doHandleException
protected void doHandleException(Exception ex,
MuleEvent event,
RollbackSourceCallback rollbackMethod)
stopFlow
protected void stopFlow(FlowConstruct flow)
isStopMessageProcessing
public boolean isStopMessageProcessing()
setStopMessageProcessing
public void setStopMessageProcessing(boolean stopMessageProcessing)
Copyright © 2003-2011 MuleSoft, Inc.. All Rights Reserved.