public class RetryPolicyTemplateObjectFactory extends Object implements ObjectFactory<RetryPolicyTemplate>, 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 |
getObject() |
void |
setBlocking(boolean blocking) |
void |
setCount(Integer count) |
void |
setFrequency(Integer frequency) |
void |
setMuleContext(MuleContext context) |
public RetryPolicyTemplate getObject() throws Exception
getObject in interface ObjectFactory<RetryPolicyTemplate>Exceptionpublic 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 setMuleContext(MuleContext context)
setMuleContext in interface MuleContextAwareCopyright © 2003–2017 MuleSoft, Inc.. All rights reserved.