org.mule.api.retry
Interface RetryCallback


public interface RetryCallback

This is the main Retry SPI. Any code executed in the doWork(org.mule.api.retry.RetryContext) method will be subject to any Retry Policies associated with the org.mule.api.retry.RetryTemplate. If doWork(org.mule.api.retry.RetryContext) throws an exception the operation will be attempted again until the Retry Policy has been exhausted. Note that Retries can be wrapped in a transaction to ensure the work is atomic.

See Also:
org.mule.api.retry.RetryTemplate, RetryPolicy

Method Summary
 void doWork(RetryContext context)
           
 String getWorkDescription()
           
 

Method Detail

doWork

void doWork(RetryContext context)
            throws Exception
Throws:
Exception

getWorkDescription

String getWorkDescription()


Copyright © 2003-2008 MuleSource, Inc.. All Rights Reserved.