public abstract class AbstractPolicyTemplate extends Object implements RetryPolicyTemplate, MuleContextAware
| Modifier and Type | Field and Description |
|---|---|
protected org.slf4j.Logger |
logger |
protected RetryNotifier |
notifier |
| Constructor and Description |
|---|
AbstractPolicyTemplate() |
| Modifier and Type | Method and Description |
|---|---|
RetryContext |
execute(RetryCallback callback,
Executor workManager)
Applies the retry policy by performing a blocking action.
|
Map<Object,Object> |
getMetaInfo() |
RetryNotifier |
getNotifier() |
void |
setId(String id) |
void |
setMetaInfo(Map<Object,Object> metaInfo) |
void |
setMuleContext(MuleContext context) |
void |
setNotifier(RetryNotifier retryNotifier) |
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, waitapplyPolicy, createRetryInstanceprotected RetryNotifier notifier
protected final transient org.slf4j.Logger logger
public void setMuleContext(MuleContext context)
setMuleContext in interface MuleContextAwarecontext - the Mule node.public RetryContext execute(RetryCallback callback, Executor workManager) throws Exception
RetryPolicyTemplateexecute in interface RetryPolicyTemplatecallback - a callback with the logic to be executed on each retryworkManager - the executor on which the retry operations are to be executedRetryContextExceptionpublic RetryNotifier getNotifier()
getNotifier in interface RetryPolicyTemplatepublic void setNotifier(RetryNotifier retryNotifier)
setNotifier in interface RetryPolicyTemplatepublic Map<Object,Object> getMetaInfo()
getMetaInfo in interface RetryPolicyTemplatepublic void setMetaInfo(Map<Object,Object> metaInfo)
setMetaInfo in interface RetryPolicyTemplatepublic void setId(String id)
Copyright © 2003–2017 MuleSoft, Inc.. All rights reserved.