org.mule.retry.async
Class AsynchronousRetryTemplate
java.lang.Object
org.mule.retry.async.AsynchronousRetryTemplate
- All Implemented Interfaces:
- RetryPolicyTemplate
public class AsynchronousRetryTemplate
- extends Object
- implements RetryPolicyTemplate
This class is a wrapper for a 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.
| Methods inherited from class java.lang.Object |
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
AsynchronousRetryTemplate
public AsynchronousRetryTemplate(RetryPolicyTemplate delegate)
execute
public RetryContext execute(RetryCallback callback,
WorkManager workManager)
throws Exception
- Specified by:
execute in interface RetryPolicyTemplate
- Throws:
Exception
createRetryInstance
public RetryPolicy createRetryInstance()
- Specified by:
createRetryInstance in interface RetryPolicyTemplate
getNotifier
public RetryNotifier getNotifier()
- Specified by:
getNotifier in interface RetryPolicyTemplate
setNotifier
public void setNotifier(RetryNotifier retryNotifier)
- Specified by:
setNotifier in interface RetryPolicyTemplate
getMetaInfo
public Map<Object,Object> getMetaInfo()
- Specified by:
getMetaInfo in interface RetryPolicyTemplate
setMetaInfo
public void setMetaInfo(Map<Object,Object> metaInfo)
- Specified by:
setMetaInfo in interface RetryPolicyTemplate
getDelegate
public RetryPolicyTemplate getDelegate()
setStartLatch
public void setStartLatch(Latch latch)
Copyright © 2003-2013 MuleSoft, Inc.. All Rights Reserved.