public class RetryPolicyTemplateObjectFactory extends AbstractAnnotatedObjectFactory<RetryPolicyTemplate>
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 |
setRetryNotifier(RetryNotifier retryNotifier) |
getObjectgetAnnotation, getAnnotations, getLocation, getRootContainerName, 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 RetryPolicyTemplate doGetObject() throws Exception
doGetObject in class AbstractAnnotatedObjectFactory<RetryPolicyTemplate>ExceptionCopyright © 2003–2017 MuleSoft, Inc.. All rights reserved.