Class Budgets


  • public final class Budgets
    extends Object
    Helper builder of budgets
    • Method Detail

      • atLeastOnce

        public static int atLeastOnce​(int iterations)
        Some components use 0 to disable retrying the task. This sanitizes it to run at least once
        Parameters:
        iterations - the number of iterations
        Returns:
        an integer greater than or equal to 1 equivalent to the maximum number of iterations allowed