- All Implemented Interfaces:
- AutoCompensableRecoveryPolicy
public class AutoCompensableForwardRecovery
extends AutoCompensableRecovery
ForwardRecovery is used to execute business logic with the given retries times.
If the value of the variable 'retries' equals 0, use the default recovery to execute only once.
If the value of the variable 'retries' is more than 0, it will use the forward recovery and retry the given times at most.
If the value of the variable 'retries' is less than 0, it will use the forward recovery and retry forever until interrupted.