public class AsynchronousUntilSuccessfulProcessingStrategy extends AbstractUntilSuccessfulProcessingStrategy implements Initialisable, Disposable, Startable, Stoppable, MessagingExceptionHandlerAware
Modifier and Type | Field and Description |
---|---|
protected org.apache.commons.logging.Log |
logger |
PHASE_NAME
PHASE_NAME
PHASE_NAME
PHASE_NAME
Constructor and Description |
---|
AsynchronousUntilSuccessfulProcessingStrategy(MuleContext muleContext)
Creates a new instance
|
Modifier and Type | Method and Description |
---|---|
static Serializable |
buildQueueKey(MuleEvent muleEvent) |
protected RetryPolicyExhaustedException |
buildRetryPolicyExhaustedException(Exception e) |
void |
dispose()
A lifecycle method where implementor should free up any resources.
|
protected MuleEvent |
doRoute(MuleEvent event) |
void |
initialise()
Method used to perform any initialisation work.
|
void |
setMessagingExceptionHandler(MessagingExceptionHandler messagingExceptionHandler) |
void |
start() |
void |
stop() |
protected void |
submitForProcessing(Serializable eventStoreKey) |
protected MuleEvent |
threadSafeCopy(MuleEvent event) |
ensureSerializable, getUntilSuccessfulConfiguration, processEvent, processResponseThroughAckResponseExpression, route, setUntilSuccessfulConfiguration
public AsynchronousUntilSuccessfulProcessingStrategy(MuleContext muleContext)
muleContext
- the MuleContext for the current Mule artifact. Non nullpublic 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 fromprotected MuleEvent doRoute(MuleEvent event) throws MessagingException
doRoute
in class AbstractUntilSuccessfulProcessingStrategy
MessagingException
protected void submitForProcessing(Serializable eventStoreKey)
public static Serializable buildQueueKey(MuleEvent muleEvent)
protected RetryPolicyExhaustedException buildRetryPolicyExhaustedException(Exception e)
public void setMessagingExceptionHandler(MessagingExceptionHandler messagingExceptionHandler)
setMessagingExceptionHandler
in interface MessagingExceptionHandlerAware
public void dispose()
Disposable
dispose
in interface Disposable
Copyright © 2003–2018 MuleSoft, Inc.. All rights reserved.