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, transactionConfig
flowConstruct, messagingExceptionHandler, muleContext
PHASE_NAME
PHASE_NAME
PHASE_NAME
PHASE_NAME
PROPERTY_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, setTransactionConfig
addMessageProcessorPathElements, getAnnotation, getAnnotations, getOwnedObjects, setAnnotations
getFlowConstruct, getMessagingExceptionHandler, setFlowConstruct, setMessagingExceptionHandler, setMuleContext
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
getFlowConstruct, getMuleContext
setMuleContext
setFlowConstruct
public static final String PROCESS_ATTEMPT_COUNT_PROPERTY_NAME
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
initialise
in class AbstractOutboundRouter
InitialisationException
- 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 Startable
start
in class AbstractOutboundRouter
MuleException
public ScheduledThreadPoolExecutor createScheduledRetriesPool(String threadPrefix)
createScheduledRetriesPool
in interface UntilSuccessfulConfiguration
threadPrefix
- the prefix for the name of the threads of this executor's pool.public void stop() throws MuleException
stop
in interface Stoppable
stop
in class AbstractOutboundRouter
MuleException
public boolean isMatch(MuleMessage message) throws MuleException
Matchable
isMatch
in interface Matchable
message
- the current message to evaluateMuleException
- if the event cannot be evaluatedprotected MuleEvent route(MuleEvent event) throws MessagingException
route
in class AbstractOutboundRouter
MessagingException
public ListableObjectStore<MuleEvent> getObjectStore()
getObjectStore
in interface UntilSuccessfulConfiguration
public void setObjectStore(ListableObjectStore<MuleEvent> objectStore)
public int getMaxRetries()
getMaxRetries
in interface UntilSuccessfulConfiguration
public 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 UntilSuccessfulConfiguration
public void setMillisBetweenRetries(long millisBetweenRetries)
public String getFailureExpression()
public void setFailureExpression(String failureExpression)
public String getAckExpression()
getAckExpression
in interface UntilSuccessfulConfiguration
public void setAckExpression(String ackExpression)
public void setDeadLetterQueue(Object deadLetterQueue)
public Object getDeadLetterQueue()
public String getEventKeyPrefix()
public ExpressionFilter getFailureExpressionFilter()
getFailureExpressionFilter
in interface UntilSuccessfulConfiguration
public void setThreadingProfile(ThreadingProfile threadingProfile)
public ThreadingProfile getThreadingProfile()
getThreadingProfile
in interface UntilSuccessfulConfiguration
public MessageProcessor getDlqMP()
getDlqMP
in interface UntilSuccessfulConfiguration
public MessageProcessor getRoute()
getRoute
in interface UntilSuccessfulConfiguration
public AbstractOutboundRouter getRouter()
getRouter
in interface UntilSuccessfulConfiguration
public void setSynchronous(boolean synchronous)
Copyright © 2003–2016 MuleSoft, Inc.. All rights reserved.