public class AsynchronousRetryTemplate extends Object implements RetryPolicyTemplate
RetryPolicyTemplate and will execute any retry work within a separate thread. An optional
Latch can be passed into this template, in which case execution will only occur once the latch is released.| Constructor and Description |
|---|
AsynchronousRetryTemplate(RetryPolicyTemplate delegate) |
| Modifier and Type | Method and Description |
|---|---|
RetryPolicy |
createRetryInstance() |
RetryContext |
execute(RetryCallback callback,
Executor workManager)
Applies the retry policy by performing a blocking action.
|
RetryPolicyTemplate |
getDelegate() |
Map<Object,Object> |
getMetaInfo() |
RetryNotifier |
getNotifier() |
void |
setMetaInfo(Map<Object,Object> metaInfo) |
void |
setNotifier(RetryNotifier retryNotifier) |
void |
setStartLatch(Latch latch) |
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, waitapplyPolicypublic AsynchronousRetryTemplate(RetryPolicyTemplate delegate)
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 RetryPolicy createRetryInstance()
createRetryInstance in interface RetryPolicyTemplatepublic 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 RetryPolicyTemplate getDelegate()
public void setStartLatch(Latch latch)
Copyright © 2003–2017 MuleSoft, Inc.. All rights reserved.