Any member of fund B shall be eligible for retirement and to receive a retirement allowance upon completing twenty-five years of aggregate service in a participating municipality or upon attaining the age of fifty-five years, provided such employee has had five years of continuous service or fifteen years of active aggregate service in a participating municipality.