public class AsynchronousUntilSuccessfulProcessingStrategy extends AbstractUntilSuccessfulProcessingStrategy implements Initialisable, Startable, Stoppable, MessagingExceptionHandlerAware
Modifier and Type | Field and Description |
---|---|
protected org.apache.commons.logging.Log |
logger |
PHASE_NAME
PHASE_NAME
PHASE_NAME
Constructor and Description |
---|
AsynchronousUntilSuccessfulProcessingStrategy() |
Modifier and Type | Method and Description |
---|---|
static Serializable |
buildQueueKey(MuleEvent muleEvent) |
void |
initialise()
Method used to perform any initialisation work.
|
MuleEvent |
route(MuleEvent event) |
void |
setMessagingExceptionHandler(MessagingExceptionHandler messagingExceptionHandler) |
void |
start() |
void |
stop() |
protected MuleEvent |
threadSafeCopy(MuleEvent event) |
getUntilSuccessfulConfiguration, processEvent, processResponseThroughAckResponseExpression, setUntilSuccessfulConfiguration
public AsynchronousUntilSuccessfulProcessingStrategy()
public void initialise() throws InitialisationException
Initialisable
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.initialise
in interface Initialisable
InitialisationException
- if a fatal error occurs causing the Mule instance to shutdownRecoverableException
- if an error occurs that can be recovered frompublic MuleEvent route(MuleEvent event) throws MessagingException
route
in interface UntilSuccessfulProcessingStrategy
event
- the message to be routed through the until-successful router.MessagingException
- exception thrown during until-successful execution.public static Serializable buildQueueKey(MuleEvent muleEvent)
public void setMessagingExceptionHandler(MessagingExceptionHandler messagingExceptionHandler)
setMessagingExceptionHandler
in interface MessagingExceptionHandlerAware
Copyright © 2003–2015 MuleSoft, Inc.. All rights reserved.