org.mule.routing
Class SynchronousUntilSuccessfulProcessingStrategy
java.lang.Object
org.mule.routing.AbstractUntilSuccessfulProcessingStrategy
org.mule.routing.SynchronousUntilSuccessfulProcessingStrategy
- All Implemented Interfaces:
- Initialisable, UntilSuccessfulProcessingStrategy
public class SynchronousUntilSuccessfulProcessingStrategy
- extends AbstractUntilSuccessfulProcessingStrategy
- implements Initialisable
Until successful synchronous processing strategy.
It will execute the until-successful router within the callers thread.
Methods inherited from class java.lang.Object |
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
logger
protected transient Log logger
SynchronousUntilSuccessfulProcessingStrategy
public SynchronousUntilSuccessfulProcessingStrategy()
route
public MuleEvent route(MuleEvent event)
throws MessagingException
- Specified by:
route
in interface UntilSuccessfulProcessingStrategy
- Parameters:
event
- the message to be routed through the until-successful router.
- Returns:
- the return event from the until-successful execution.
- Throws:
MessagingException
- exception thrown during until-successful execution.
initialise
public void initialise()
throws InitialisationException
- Description copied from interface:
Initialisable
- Method used to perform any initialisation work. If a fatal error occurs during
initialisation an
InitialisationException
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.
- Specified by:
initialise
in interface Initialisable
- Throws:
InitialisationException
- if a fatal error occurs causing the Mule instance to shutdown
RecoverableException
- if an error occurs that can be recovered from
Copyright © 2003-2014 MuleSoft, Inc.. All Rights Reserved.