code: @Nonnull
    public static TransactionOptions create(@Nonnull Executor executor, int numberOfAttempts) {
      Preconditions.checkArgument(numberOfAttempts > 0, "You must allow at least one attempt");
      return new TransactionOptions(numberOfAttempts, executor, null);
    }
docs: Create a default set of options with a custom executor and a custom number of retry attempts.
  
  @param executor The executor to run the user callback code on.
  @param numberOfAttempts The number of execution attempts.
  @return The TransactionOptions object.