Class Executor.Default

  • Enclosing class:
    Executor

    public static class Executor.Default
    extends Executor
    A default, failure-tolerant implementation of the Executor class.
    • Constructor Detail

      • Default

        public Default()
      • Default

        public Default​(int maxRetry,
                       boolean composeRetry)
        Parameters:
        maxRetry - the maximum number of retries to attempt in execute(RequestCallable).
        composeRetry - whether nested retries block cause retries to compose or not. If set to false, we will wrap the exception of the last retry step in an instance of MaxRetryExceededException, which prevents any further retries.