/** * Create a retry policy that retries with a provided set of back off periods. This allows the user to perform an exponential backoff, for * example. * * @param backOffPeriods an array of times to wait between retries, in milliseconds * @return the retry policy */ public static RetryPolicy createSequenceRetryPolicy(final long[] backOffPeriods) { return new SequenceRetryPolicy(backOffPeriods); }