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 RetryPolicyTemplate
Exception
public RetryPolicy createRetryInstance()
createRetryInstance
in interface RetryPolicyTemplate
public RetryNotifier getNotifier()
getNotifier
in interface RetryPolicyTemplate
public void setNotifier(RetryNotifier retryNotifier)
setNotifier
in interface RetryPolicyTemplate
public Map<Object,Object> getMetaInfo()
getMetaInfo
in interface RetryPolicyTemplate
public void setMetaInfo(Map<Object,Object> metaInfo)
setMetaInfo
in interface RetryPolicyTemplate
public RetryPolicyTemplate getDelegate()
public void setStartLatch(Latch latch)
Copyright © 2003–2016 MuleSoft, Inc.. All rights reserved.