Skip to content

Commit

Permalink
removed unused code
Browse files Browse the repository at this point in the history
  • Loading branch information
dominic-miglar committed May 7, 2022
1 parent 4f8331f commit c991034
Show file tree
Hide file tree
Showing 2 changed files with 0 additions and 48 deletions.

This file was deleted.

Original file line number Diff line number Diff line change
Expand Up @@ -14,24 +14,6 @@ private RetryTemplateFactory()
{
}

public static RetryTemplate getRetryTemplateWithExponentialBackOffForAllExceptions(int maxAttempts,
long initialBackOffInterval,
double backOffMultiplier)
{
SimpleRetryPolicy simpleRetryPolicy = new SimpleRetryPolicy();
simpleRetryPolicy.setMaxAttempts(maxAttempts);

ExponentialBackOffPolicy exponentialBackOffPolicy = new ExponentialBackOffPolicy();
exponentialBackOffPolicy.setInitialInterval(initialBackOffInterval);
exponentialBackOffPolicy.setMultiplier(backOffMultiplier);

RetryTemplate retryTemplate = new RetryTemplate();
retryTemplate.setBackOffPolicy(exponentialBackOffPolicy);
retryTemplate.setRetryPolicy(simpleRetryPolicy);

return retryTemplate;
}

public static RetryTemplate getRetryTemplateWithExponentialBackOffForGivenException(int maxAttempts,
long initialBackOffInterval,
double backOffMultiplier,
Expand Down

0 comments on commit c991034

Please sign in to comment.