Module id.xfunction

Class RetryableExecutor

Object
RetryableExecutor

public class RetryableExecutor extends Object
The retry mechanism which is based on RetryException.

This executor calls user function and every time it throws RetryException the call repeats. It gives more control to the users on how to handle the retry and what actions to perform between the retries. User can add application specific logging or even depending on certain conditions decide not to retry anymore (not to throw RetryException).