You have two choices.
Non O with extensions based on retirement or if married based on marriage. (if married to a Thai)
Some married guys choose based on retirement due to much less paperwork and no under consideration period.
Some choose based on marriage because the financial requirements are much easier than for retirement.