org.mule.exception
Class AbstractSystemExceptionStrategy
java.lang.Object
org.mule.processor.AbstractMuleObjectOwner<MessageProcessor>
org.mule.processor.AbstractMessageProcessorOwner
org.mule.exception.AbstractExceptionListener
org.mule.exception.AbstractSystemExceptionStrategy
- All Implemented Interfaces:
- AnnotatedObject, FlowConstructAware, MuleContextAware, ExceptionHandler, SystemExceptionHandler, Disposable, Initialisable, Lifecycle, Startable, Stoppable
- Direct Known Subclasses:
- DefaultSystemExceptionStrategy
public class AbstractSystemExceptionStrategy
- extends AbstractExceptionListener
- implements SystemExceptionHandler
Fire a notification, log exception, clean up transaction if any, and trigger reconnection strategy
if this is a ConnectException
.
Methods inherited from class org.mule.exception.AbstractExceptionListener |
addEndpoint, closeStream, commit, doInitialise, fireNotification, fireNotification, getCommitTxFilter, getExceptionType, getMessageProcessors, getOwnedMessageProcessors, getRollbackTxFilter, handleTransaction, initialise, isEnableNotifications, isInitialised, isRollback, logException, logFatal, removeMessageProcessor, rollback, rollback, rollbackTransaction, routeException, routeException, setCommitTxFilter, setEnableNotifications, setMessageProcessors, setRollbackTxFilter |
Methods inherited from class java.lang.Object |
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
Methods inherited from interface org.mule.api.lifecycle.Startable |
start |
Methods inherited from interface org.mule.api.lifecycle.Stoppable |
stop |
AbstractSystemExceptionStrategy
public AbstractSystemExceptionStrategy(MuleContext muleContext)
handleException
public void handleException(Exception ex,
RollbackSourceCallback rollbackMethod)
- Description copied from interface:
SystemExceptionHandler
- Take some action when a system exception has occurred (i.e., there was no message in play when the exception occurred).
- Specified by:
handleException
in interface SystemExceptionHandler
- Parameters:
ex
- which occurredrollbackMethod
- will be called if transactions are not used in order to achieve atomic message delivery
handleException
public void handleException(Exception ex)
- Description copied from interface:
SystemExceptionHandler
- Take some action when a system exception has occurred (i.e., there was no message in play when the exception occurred).
- Specified by:
handleException
in interface SystemExceptionHandler
- Parameters:
ex
- which occurred
handleReconnection
protected void handleReconnection(ConnectException ex)
Copyright © 2003-2012 MuleSoft, Inc.. All Rights Reserved.