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,
WorkManager workManager) |
RetryPolicyTemplate |
getDelegate() |
Map<Object,Object> |
getMetaInfo() |
RetryNotifier |
getNotifier() |
void |
setMetaInfo(Map<Object,Object> metaInfo) |
void |
setNotifier(RetryNotifier retryNotifier) |
void |
setStartLatch(Latch latch) |
public AsynchronousRetryTemplate(RetryPolicyTemplate delegate)
public RetryContext execute(RetryCallback callback, WorkManager workManager) throws Exception
execute in interface RetryPolicyTemplateExceptionpublic 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–2015 MuleSoft, Inc.. All rights reserved.