public class UntilSuccessful extends AbstractOutboundRouter implements UntilSuccessfulConfiguration
ListableObjectStore for storing the events
that are pending (re)processing.
To execute until-successful asynchronously the threading profile defined on it must have
doThreading attribute set with true value.
To execute until-successful synchronously the threading profile defined on it must have
doThreading attribute set with false value.| Modifier and Type | Field and Description |
|---|---|
static String |
PROCESS_ATTEMPT_COUNT_PROPERTY_NAME |
enableCorrelation, initialised, logger, replyTo, resultsHandler, routes, started, transactionConfigflowConstruct, messagingExceptionHandler, muleContextPHASE_NAMEPHASE_NAMEPHASE_NAMEPHASE_NAMEPROPERTY_NAME| Constructor and Description |
|---|
UntilSuccessful() |
addRoute, cloneMessage, cloneMessage, createEventToRoute, dispose, getEnableCorrelation, getMuleContext, getOwnedMessageProcessors, getReplyTo, getResultsHandler, getRoute, getRouterStatistics, getRoutes, getTransactionConfig, isDynamicRoutes, process, propagateMagicProperties, removeRoute, sendRequest, sendRequestEvent, setEnableCorrelation, setEnableCorrelationAsString, setMessageProcessors, setMessageProperties, setReplyTo, setResultsHandler, setRouterStatistics, setRoutes, setTransactionConfigaddMessageProcessorPathElements, getAnnotation, getAnnotations, getOwnedObjects, setAnnotationsgetFlowConstruct, getMessagingExceptionHandler, setFlowConstruct, setMessagingExceptionHandler, setMuleContextclone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, waitgetFlowConstruct, getMuleContextsetMuleContextsetFlowConstructpublic static final String PROCESS_ATTEMPT_COUNT_PROPERTY_NAME
public void initialise()
throws InitialisationException
InitialisableInitialisationException 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 Initialisableinitialise in class AbstractOutboundRouterInitialisationException - if a fatal error occurs causing the Mule instance to shutdownRecoverableException - if an error occurs that can be recovered frompublic void start()
throws MuleException
start in interface Startablestart in class AbstractOutboundRouterMuleExceptionpublic void stop()
throws MuleException
stop in interface Stoppablestop in class AbstractOutboundRouterMuleExceptionpublic boolean isMatch(MuleMessage message) throws MuleException
MatchableisMatch in interface Matchablemessage - the current message to evaluateMuleException - if the event cannot be evaluatedprotected MuleEvent route(MuleEvent event) throws MessagingException
route in class AbstractOutboundRouterMessagingExceptionpublic ListableObjectStore<MuleEvent> getObjectStore()
getObjectStore in interface UntilSuccessfulConfigurationpublic void setObjectStore(ListableObjectStore<MuleEvent> objectStore)
public int getMaxRetries()
getMaxRetries in interface UntilSuccessfulConfigurationpublic void setMaxRetries(int maxRetries)
@Deprecated public void setSecondsBetweenRetries(long secondsBetweenRetries)
setMillisBetweenRetries(long) insteadsecondsBetweenRetries - the number of seconds to wait between retriespublic long getMillisBetweenRetries()
getMillisBetweenRetries in interface UntilSuccessfulConfigurationpublic void setMillisBetweenRetries(long millisBetweenRetries)
public String getFailureExpression()
public void setFailureExpression(String failureExpression)
public String getAckExpression()
getAckExpression in interface UntilSuccessfulConfigurationpublic void setAckExpression(String ackExpression)
public void setDeadLetterQueue(Object deadLetterQueue)
public Object getDeadLetterQueue()
public String getEventKeyPrefix()
public ExpressionFilter getFailureExpressionFilter()
getFailureExpressionFilter in interface UntilSuccessfulConfigurationpublic void setThreadingProfile(ThreadingProfile threadingProfile)
public ThreadingProfile getThreadingProfile()
getThreadingProfile in interface UntilSuccessfulConfigurationpublic MessageProcessor getDlqMP()
getDlqMP in interface UntilSuccessfulConfigurationpublic MessageProcessor getRoute()
getRoute in interface UntilSuccessfulConfigurationpublic AbstractOutboundRouter getRouter()
getRouter in interface UntilSuccessfulConfigurationpublic void setSynchronous(boolean synchronous)
Copyright © 2003–2015 MuleSoft, Inc.. All rights reserved.