(a) (1) This subsection applies only to an individual who is a member of the Judges’ Retirement System on or before June 30, 2012.

(2) A member or former member is entitled to a retirement allowance:

(i) on termination of service, if the member is at least 60 years old;

(ii) on the recommendation of the medical board, if the member or former member resigns because of disability;

(iii) when retired by order of the Court of Appeals; or

(iv) at the age of 60 years, if the former member’s termination of service occurred earlier.

(b) (1) This subsection applies only to an individual who becomes a member of the Judges’ Retirement System on or after July 1, 2012.

(2) A member or former member is entitled to a retirement allowance:

(i) on termination of service, if the member is at least 60 years old and has at least 5 years of eligibility service;

(ii) on the recommendation of the medical board, if the member or former member resigns because of disability;

(iii) when retired by order of the Court of Appeals, if the member has at least 5 years of eligibility service;

(iv) at the mandatory retirement age required by Article IV, § 3 of the Maryland Constitution with less than 5 years of eligibility service, if the member has eligibility service equal to the mandatory retirement age required by Article IV, § 3 of the Maryland Constitution minus the member’s age when the member first becomes a member; or

(v) at the age of 60 years, if the former member’s termination of service occurred earlier and the former member had at least 5 years of eligibility service when the former member terminated service.