org.mule.routing
Class SynchronousUntilSuccessfulProcessingStrategy

java.lang.Object
  extended by org.mule.routing.AbstractUntilSuccessfulProcessingStrategy
      extended by 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.


Field Summary
protected  Log logger
           
 
Fields inherited from interface org.mule.api.lifecycle.Initialisable
PHASE_NAME
 
Constructor Summary
SynchronousUntilSuccessfulProcessingStrategy()
           
 
Method Summary
 void initialise()
          Method used to perform any initialisation work.
 MuleEvent route(MuleEvent event)
           
 
Methods inherited from class org.mule.routing.AbstractUntilSuccessfulProcessingStrategy
getUntilSuccessfulConfiguration, processEvent, processResponseThroughAckResponseExpression, setUntilSuccessfulConfiguration
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Field Detail

logger

protected transient Log logger
Constructor Detail

SynchronousUntilSuccessfulProcessingStrategy

public SynchronousUntilSuccessfulProcessingStrategy()
Method Detail

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.