Class RetryUtils


public final class RetryUtils
extends Object
Static utility class to retry operations related to connecting to AWS Services.
  • Method Details

    • retry

      public static <T> T retry​(Callable<T> callable, int retries)
      Calls until it does not throw an exception (but no more than retries times).

      Note that callable should be an idempotent operation which is a call to the AWS Service.

      If callable throws an unchecked exception, it is wrapped into HazelcastException.