I'm making a service call with some input objects to a database. Few of the objects succeed and rest of them fail with a reason. I want to have an exponential retry strategy to trigger the same call with the failed objects.
Is there any framework i can use with a defined retry strategy in java
Example call
Output output = mDbService.persist(List<Objects> objects)
The output of the service call looks like
class Output {
int successCount;
List<FailedObject> failedObject;
}
// Each failedObject has a structure
class FailedObject {
Object object;
int errorCode; // Some are retryable and other are not.
}