public class RetryPolicyTemplateObjectFactory extends AbstractAnnotatedObjectFactory<RetryPolicyTemplate> implements MuleContextAware
ObjectFactory for reconnection configuration.
It will return a RetryPolicyTemplate that may run synchronously or asynchronously based
on the blocking configuration.| Constructor and Description |
|---|
RetryPolicyTemplateObjectFactory() |
| Modifier and Type | Method and Description |
|---|---|
RetryPolicyTemplate |
doGetObject() |
void |
setBlocking(boolean blocking) |
void |
setCount(Integer count) |
void |
setFrequency(Integer frequency) |
void |
setMuleContext(MuleContext context) |
void |
setRetryNotifier(RetryNotifier retryNotifier) |
getAnnotation, getAnnotations, getLocation, getObject, setAnnotationspublic void setBlocking(boolean blocking)
blocking - true if the policy must run synchronously when invoked, false if it must run asynchronously.public void setCount(Integer count)
count - the number of retries to execute.public void setFrequency(Integer frequency)
frequency - time between retries.public void setRetryNotifier(RetryNotifier retryNotifier)
retryNotifier - the retry notifier to use when retrying in the templatepublic void setMuleContext(MuleContext context)
setMuleContext in interface MuleContextAwarepublic RetryPolicyTemplate doGetObject() throws Exception
doGetObject in class AbstractAnnotatedObjectFactory<RetryPolicyTemplate>ExceptionCopyright © 2003–2017 MuleSoft, Inc.. All rights reserved.