public class AsynchronousUntilSuccessfulProcessingStrategy extends AbstractUntilSuccessfulProcessingStrategy implements org.mule.runtime.api.lifecycle.Initialisable, org.mule.runtime.api.lifecycle.Disposable, org.mule.runtime.api.lifecycle.Startable, org.mule.runtime.api.lifecycle.Stoppable, MessagingExceptionHandlerAware
It will return successfully to the flow executing the router once it was able to store the message in the object store.
After that it will asynchronously try to process the message through the internal route. If route was not successfully executed after the configured retry count then the message will be routed to the defined dead letter queue route or in case there is no dead letter queue route then it will be handled by the flow exception strategy.
| Modifier and Type | Field and Description |
|---|---|
protected org.slf4j.Logger |
logger |
muleContext| Constructor and Description |
|---|
AsynchronousUntilSuccessfulProcessingStrategy() |
| Modifier and Type | Method and Description |
|---|---|
static Serializable |
buildQueueKey(Event muleEvent,
FlowConstruct flow,
MuleContext muleContext) |
protected RetryPolicyExhaustedException |
buildRetryPolicyExhaustedException(Exception e) |
void |
dispose() |
protected void |
doProcess(Serializable eventStoreKey) |
protected Event |
doRoute(Event event,
FlowConstruct flow) |
void |
initialise() |
void |
setMessagingExceptionHandler(MessagingExceptionHandler messagingExceptionHandler) |
void |
start() |
void |
stop() |
protected void |
submitForProcessing(Serializable eventStoreKey) |
ensureSerializable, getUntilSuccessfulConfiguration, processEvent, processResponseThroughAckResponseExpression, route, setMuleContext, setUntilSuccessfulConfigurationpublic AsynchronousUntilSuccessfulProcessingStrategy()
public void initialise()
throws org.mule.runtime.api.lifecycle.InitialisationException
initialise in interface org.mule.runtime.api.lifecycle.Initialisableorg.mule.runtime.api.lifecycle.InitialisationExceptionpublic void start()
start in interface org.mule.runtime.api.lifecycle.Startablepublic void stop()
stop in interface org.mule.runtime.api.lifecycle.Stoppableprotected Event doRoute(Event event, FlowConstruct flow) throws org.mule.runtime.api.exception.MuleException
doRoute in class AbstractUntilSuccessfulProcessingStrategyorg.mule.runtime.api.exception.MuleExceptionprotected void submitForProcessing(Serializable eventStoreKey)
protected void doProcess(Serializable eventStoreKey)
public static Serializable buildQueueKey(Event muleEvent, FlowConstruct flow, MuleContext muleContext)
protected RetryPolicyExhaustedException buildRetryPolicyExhaustedException(Exception e)
public void setMessagingExceptionHandler(MessagingExceptionHandler messagingExceptionHandler)
setMessagingExceptionHandler in interface MessagingExceptionHandlerAwarepublic void dispose()
dispose in interface org.mule.runtime.api.lifecycle.DisposableCopyright © 2003–2017 MuleSoft, Inc.. All rights reserved.