public class RetryPolicyTemplateObjectFactory extends org.mule.runtime.dsl.api.component.AbstractComponentFactory<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) |
getAnnotation, getAnnotations, getDslSource, getIdentifier, getLocation, getRepresentation, getRootContainerLocation, initRootContainerName, 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 org.mule.runtime.dsl.api.component.AbstractComponentFactory<RetryPolicyTemplate>ExceptionCopyright © 2003–2022 MuleSoft, Inc.. All rights reserved.